Zed extension for the Tera templating language.
Tip
For Visual Studio Code support, see uncenter/vscode-tera. For Helix and Neovim support, see uncenter/tree-sitter-tera.
Zed with zed-tera. Screenshot taken with the catppuccin/zed theme.
Open zed: extensions
in the command palette, and search for the "Tera" extension.
If you would like syntax highlighting for the content around the Tera templating logic, you'll need to add the following (for each desired language, assuming it is supported1) to your Zed settings file:
"file_types": {
"Tera (<language>)": [
"*.<extension>.tera"
]
},
...where <language>
is the proper name of the language, and <extension>
is the respective file extension. For example, for HTML:
"file_types": {
"Tera (HTML)": [
"*.html.tera"
]
},
Tip
See examples/all-languages.json
for a complete settings file containing the file_types
setting for all supported languages.
Footnotes
-
Supported languages: HTML, CSS, JSON, YAML, and TOML. Open an issue to request additional language support - dynamic language injection is currently not supported. ↩