@PeterJones said in Custom Styles for 'Special' Comments:
So I see a conflict: do you want to use a UDL ([Language > Define Your Language](https://npp-user-manual.org/docs/user-
If using the builtin HTML lexer, unfortunately Settings > Style Configurator > HTML dialog doesn’t seem to list any styles that have user-defined keywords. And even if you could, I think comments would override that.
I was hoping to simply modify the built in HTML lexer. Thanks for confirming that that is not possible.
However, there are workarounds:
you can add extra highlighting to a builtin lexer (like the HTML lexer) using regexes via the script EnhanceAnyBuiltinLexer.py that @Ekopalypse shares, in this linked post
you can add extra highlighting to a UDL language using regexes via the script EnhanceUDLLexer.py that @Ekopalypse shares in this linked post
I will check these out, but regex is usually challenging for me. I’ll give it a go.
Thanks again,
Tom Benedict