]> source.dussan.org Git - gitea.git/commitdiff
Enable syntax highlighting for *.tmpl on GitHub (#13571)
authorsilverwind <me@silverwind.io>
Sun, 15 Nov 2020 19:34:06 +0000 (20:34 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Nov 2020 19:34:06 +0000 (14:34 -0500)
Go templates are syntactically very similar to handlebars, this enabled
their syntax highlighting on GitHub.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
.gitattributes

index 67f7f52377df05556c7acbb083ab4f23b2c35c84..d4ce3a2d950311c98c5adea7590e8a7ad7617a17 100644 (file)
@@ -1,3 +1,4 @@
 * text=auto eol=lf
 /vendor/** -text -eol linguist-vendored
 /public/vendor/** -text -eol linguist-vendored
+/templates/**/*.tmpl linguist-language=Handlebars