Skip to content

⛩️ Zed extension for the Tera templating language

License

Notifications You must be signed in to change notification settings

uncenter/zed-tera

Repository files navigation

zed-tera

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.

Screenshot of highlighted sample Tera code in Zed with the zed-tera extension installed

Zed with zed-tera. Screenshot taken with the catppuccin/zed theme.

Usage

Open zed: extensions in the command palette, and search for the "Tera" extension.

Embedded/injected Language Support

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.

License

MIT

Footnotes

  1. Supported languages: HTML, CSS, JSON, YAML, and TOML. Open an issue to request additional language support - dynamic language injection is currently not supported.

About

⛩️ Zed extension for the Tera templating language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published