Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EJS syntax highlighting in HTML files with Notepad++

I am using Notepad++ to view some HTML files which also have Javascript and EJS (embedded java script, node.js rendering engine) parts. Unfortunately the syntax highlighting often looks like this:

enter image description here

With EJS you can insert your dynamic stuff like you would do it with PHP in HTML files. The opening tag is <% or <%= and you close it with %>.

Is there any possibility to configure Notepad++ in such a way that syntax highlighting between <% %> is ignored? Or that the whole block is treated like normal text or something?

like image 634
Chris2015 Avatar asked Nov 09 '22 20:11

Chris2015


1 Answers

You can try to use ASP syntax highlighting but you will need to use double quote because in ASP ' is a comment.

Hopefully it's helpful.

like image 185
Eyal Alon Avatar answered Nov 15 '22 06:11

Eyal Alon