Skip to content

xembly/vscode-gomplate

Repository files navigation

Visual Studio Code - Go Template Syntax

Visual Studio Marketplace License: MIT

Syntax highlighting and language support for Go's text/template and html/template packages in Visual Studio Code.

Features

Supports Go template syntax embedded within many host languages, each registered as a distinct language ID:

Language ID File Extensions / Patterns
gomplate .gotmpl, .tmpl, .tpl
gohtml .gohtml, .html.tmpl, .html.tpl, .html.gotmpl
goyaml .yml.tmpl, .yaml.tmpl, .yaml.tpl, .yaml.gotmpl
gojs .gojs, .js.tmpl, .js.tpl, .js.gotmpl
gots .gots, .ts.tmpl, .ts.tpl, .ts.gotmpl
gojson .json.tmpl, .json.tpl, .json.gotmpl
gocss .gocss, .css.tmpl, .css.tpl
goshell .gosh, *.sh.tmpl, *.bash.tmpl, *.zsh.tmpl, etc.
gophp .gophp, .php.tmpl, .php.tpl, .php.gotmpl
gojava .gojava, .java.tmpl, .java.tpl, .java.gotmpl
gogo .gogo, .go.tmpl, .go.tpl
godockerfile .godockerfile, .Dockerfile.tmpl, .Dockerfile.gotmpl
goR .goR, .R.tmpl, .R.tpl, .R.gotmpl

Go template delimiters ({{, }}) are highlighted inside all supported host languages via a TextMate grammar injection.

Installation

Search for gomplate template renderer in the VS Code Extensions panel, or install via the command line:

code --install-extension xembly.gomplate

Source

Source code: https://github.com/xembly/vscode-gomplate

Originally developed by casualjim. Imported from GoSublime.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors