Blog of Raivo Laanemets

Stories about web development, consulting and personal computers.

EJS highlighter for Kate

On 2016-01-12

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:

Kate with EJS highlighter

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.