https://github.com/romantomjak/vscode-go-template
VS Code extension to add syntax hightlighting for Go template files
https://github.com/romantomjak/vscode-go-template
go-template golang visual-studio-code vscode vscode-extension
Last synced: about 2 months ago
JSON representation
VS Code extension to add syntax hightlighting for Go template files
- Host: GitHub
- URL: https://github.com/romantomjak/vscode-go-template
- Owner: romantomjak
- License: mit
- Created: 2025-02-10T23:37:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T12:57:03.000Z (over 1 year ago)
- Last Synced: 2025-05-13T16:53:43.811Z (about 1 year ago)
- Topics: go-template, golang, visual-studio-code, vscode, vscode-extension
- Language: HTML
- Homepage: https://marketplace.visualstudio.com/items?itemName=romantomjak.go-template
- Size: 294 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Go template syntax highlighting
[VS Code extension](https://marketplace.visualstudio.com/items?itemName=romantomjak.go-template) to add syntax highlighting for [Go template files](https://pkg.go.dev/text/template).
## Features
- Multiple supported file extensions - `*.tmpl`, `*.gohtml` and `*.tpl`
- Support for Go templates in string literals
- HTML, JavaScript and CSS tag syntax highlighting
- Syntax highlighting in HTML attributes - `href="{{ .Link }}"`, `style="width: {{ .Width }}%"`

## Known issues
- Syntax highlighting does not (yet) work in `` and `<style>` HTML elements
## Contributing
If you are interested in fixing a bug or contributing a feature, please file an issue first. Wait for a project maintainer to respond before you spend time coding. If you have any other ideas or suggestions, just open an issue and share your thoughts.
If you wish to work on an existing issue, please leave a comment saying so, as someone may already be working on it.
## Development
* Press `F5` to open a new window with the extension loaded
* Create a new file with a file name suffix matching the language
* Verify that syntax highlighting works and that the language configuration settings are working
* Reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes
## Publishing
* update changelog.md
* vsce login <publisher id>
* vsce publish <minor|patch>
## License
MIT