Editor Support
✨ TeraLang Editor Support
Section titled “✨ TeraLang Editor Support”TeraLang has official editor integrations powered by Tree-sitter, enabling syntax highlighting and structure-aware editing in multiple editors.
Below are the current options and how to install them.
🌳 Tree-sitter Grammar
Section titled “🌳 Tree-sitter Grammar”The core of all editor support is the Tree-sitter grammar for TeraLang.
To use this grammar in an editor that supports Tree-sitter (like Neovim, Helix, or custom tooling), clone and link it into your Tree-sitter setup.
Repo: Tree-sitter Repo
🧠 Zed Editor Support
Section titled “🧠 Zed Editor Support”Zed has native support for Tree-sitter grammars. You can install the TeraLang plugin for Zed manually:
Repo: Zed Extension Repo
🛠 Installation
Section titled “🛠 Installation”- Clone the repo.
- Open the extensions menu in Zed.
- Click on “Install Dev Extension” and select the directory where you cloned the repo.
- Reload Zed, and you should now have syntax highlighting for
.tera
files.
🧩 VS Code Extension
Section titled “🧩 VS Code Extension”There is also a TeraLang syntax extension for Visual Studio Code:
Repo: Visual Studio Code Extension Repo
🛠 Installation
Section titled “🛠 Installation”- Download the repo
- Move it to your Visual Studio Code extensions folder
- You should now have syntax support for
.tera
files.
📝 File Extensions
Section titled “📝 File Extensions”All editor integrations support the .tera
file extension. Make sure your files use this extension to get syntax highlighting and editor features.
🧪 Contribute
Section titled “🧪 Contribute”Want to add support for another editor (like Sublime, Atom, or JetBrains)? PRs are welcome in the respective repos!
Happy editing 🖋️🚀