These files are part of the GoSublime package by DisposaBoy.
Hello friends. It is always very annoying to write HTML templates for a Go application in Sublime Text, and only have the HTML part of the code highlighted. Those white lines of code -- which are the most important parts of the template files -- are just not pleasant to the eye.
Luckily, DisposaBoy has made a syntax highlighter for Go HTML templates in the GoSublime package (which can be installed using Package Control), but what if you don't actually want to install the whole package just to have syntax highlighting?
The files from this gist do all the job for you and you won't even have to install the whole package! (I highly recommend you do, though -- it's really useful!)
Just save these two files into the Packages/User
folder (Preferences -> Browse Packages
, and then the User
folder) and you're all set!
GoSublime (c) DisposaBoy.
Thank you for this. This was helpful.