EJS highlighter for Kate
Today I have released the Embedded Javascript (EJS) template language support for the Kate text editor. The syntax specification is built as an extension to the existing HTML highlighter that also contains JavaScript and CSS support.
Example:
It was pretty easy to extend the HTML highlighter. Practically each state (Kate syntax highlighter is based on state machines) had to be made to
incude EJS rules (start with <%
, end with %>
).
The project files and the installation instructions can be found from the GitHub repo.