Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>5e Tools TextMate GrammarNew to Visual Studio Code? Get it now.
5e Tools TextMate Grammar

5e Tools TextMate Grammar

Tree

|
910 installs
| (0) | Free
TextMate Grammar that highlights tags 5e Tools' special JSON data storage type.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

5e Tools TextMate Grammar

Enables syntax highlighting for 5e.tools tags required in homebrew. This extension is much more thorough than my previous one, which if for some reason you want you can find it here. Also adds some snippets for tags. For more snippets, check out GoR's 5eT Homebrew Snippets extension.

Features

Highlights tags, such as {@hit 5} and {@item Alchemy Jug|DMG}, inside of both JSON and YAML files. Pairs well with 5e.tools JSON schemas.

Example of JSON highlighting: JSON Support

Example of YAML highlighting (only works inside double quotes): YAML Support

Extension Settings

Since this extension uses TextMate grammar for syntax highlighting, the colors are controlled by your theme. I built it with the One Dark Pro theme in mind. If you want to use these colors with a different theme (or override them), add the following to your settings.json (either User or Workspace):

{
	// ... other parts here
	"editor.tokenColorCustomizations": {
		"textMateRules": [
			{
				"scope": ["punctuation.separator.5e", "punctuation.brace.open.5e", "punctuation.brace.close.5e"],
				"settings": {
					"foreground": "#ABB2BF"
				}
			},
			{
				"scope": "constant.language.5e",
				"settings": {
					"foreground": "#D19A66"
				}
			},
			{
				"scope": "value.variable.5e",
				"settings": {
					"foreground": "#E5C07B"
				}
			},
			{
				"scope": "value.variable.rest.5e",
				"settings": {
					"foreground": "#61AFEF"
				}
			},
			{
				"scope": ["keyword.language.name.5e", "keyword.language.symbol.5e"],
				"settings": {
					"foreground": "#C678DD"
				}
			},
			{
				"scope": "keyword.asterisk.5e",
				"settings": {
					"foreground": "#56B6C2"
				}
			}
		]
	}
	// ... other parts here
}

Known Issues

  • Snippets don't work inside of JSON strings (see this). If you want to use them, you'll need to use YAML and write a script to convert it.

Release Notes

0.0.1

Initial release of 5e Tools TextMate Grammar

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft