From 78af329f2c7bc1739bcd36baf45ab95aaff43434 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 5 Oct 2024 16:46:10 +0200 Subject: ref: Use html syntax highlight for qtpl For lack of better syntax highlight this should make reading the file easier. --- pkg/handler/git/handler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index 40fae24..6fae146 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -362,6 +362,10 @@ func GetLexers(filename string) chroma.Lexer { return lexers.Get("sh") } + if strings.HasSuffix(filename, ".qtpl") { + return lexers.Get("html") + } + lexer := lexers.Get(filename) if lexer == nil { -- cgit v1.2.3