#30353
Patrick C
Participant

Thank you! 🙏
I’ve just adapted my JavaScript highlighter template and the results are fantastic:
Javascript highlighter example
String and regex literals now render really well 😃.
With respect to single line highlighting EmEditor now is perfect for my needs.

The only thing I do not have a solution for is multiline matching.
As an example: For the JavaScript multiline comment /*…*/ one could use the regex
(?#_text_c==0)\/\*.*?\*\/ with the /s flag:
Multiline example

Should something like a /s flag or a directive
#Keyword color=10, …, regexp=on, multiline=on
be possible, then EmEditor’s highlighter would be one of the best I’ve ever seen.