vscode-go-template icon indicating copy to clipboard operation
vscode-go-template copied to clipboard

Highlighting HTML in Go template

Open xermus opened this issue 2 years ago • 1 comments

When I open any given *.tmpl file the HTML is not highlighted. I thought your extension is doing this? If no, what is the suggested way enabling both Go and HTML in a *.tmpl file?

PS: I am new to Go, sorry for asking.

xermus avatar Mar 19 '22 07:03 xermus

Hey, in the description, it says :

Support syntax highlighting for Go Template files: *.go.txt, *.go.tpl, *.go.tmpl, *.gtpl.

So this extension support ".go.tmpl" but not ".tmpl"

Would it be possible to add the basic extension as ".go.tmpl" is not the default go extension used for templating (if I'm not mistaken)

CyrilDumange avatar Sep 21 '23 17:09 CyrilDumange