ref: Use html syntax highlight for qtpl For lack of better syntax highlight this should make reading the file easier.
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go index 40fae24a3f06fd27812819850d7f6e118ca78ef7..6fae1460391f93b827d8c6a6131976ebbde75a6b 100644 --- a/pkg/handler/git/handler.go +++ b/pkg/handler/git/handler.go @@ -362,6 +362,10 @@ if filename == "APKBUILD" { return lexers.Get("sh") } + if strings.HasSuffix(filename, ".qtpl") { + return lexers.Get("html") + } + lexer := lexers.Get(filename) if lexer == nil {