Best way to highlight specific keywords

You could use a plugin with a MatchDecorator to add styling outside of your language mode (though of course it’s hard to accurately identify syntactic elements with just a regexp). Or you could make a plugin that uses the syntax tree to find and decorate your keywords.

1 Like