This extension adds support for EJS (Embedded JavaScript) templating language to the Zed editor. I don't know much about Zed editor apis and but I have tried to implement the syntax highlighting for EJS files as I was working on a project where I needed to work with EJS files. So some googling and reading the Zed editor documentation I have implemented this extension. Let me know if you have any suggestions or improvements.
- If my pull request accepted it will be available in the official Zed editor extension repository.
- If not you can open the extension manager in Zed and click on
Install Dev Extension
and navigate to the directory where you have cloned this repository.
Once installed, the extension will automatically activate for files with the .ejs
extension.
EJS syntax elements are highlighted as follows:
- EJS tags:
<% %>
,<%= %>
,<%- %>
,<%_ %>
,<%# %>
- JavaScript code inside EJS tags
- HTML content outside EJS tags
Contributions to improve the extension are welcome! Please submit issues and pull requests on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Zed editor team for providing the extension API
- This extension uses the Tree-sitter grammar for embedded templates
- Existing Extensions under Zed editor repository
- 0.0.1: Initial release with basic EJS support
For more information on EJS, visit EJS documentation.