Sublime Forum

Dynamic text highlighting

#1

Is there anyway to highlight words/regions dynamically from an ST2/ST3 plugin.

I’m working on ensime-sublime plugin and we have semantic type information (which cannot be generated from regex based rules) and I would like to be able to update colour/underlining dynamically.

Is this possible, and if so where in the api should I be looking?

Thanks

Rory

0 Likes

#2

Take a look at the View.add_regions() function. It has a lot of options for different types of highlighting.

0 Likes

#3

Thanks - will do

0 Likes