Sublime Forum

Region highlighting

#1

It would be nice if there was a way for plug-ins to highlight arbitrary regions without tampering with the selection. The highlighting style should be different than the selection’s though.

0 Likes

#2

I agree… it’s on the todo list.

0 Likes

#3

[quote=“sublimator”]Also, being able to instantiate arbitrary RegionSets per view to track regions
that aren’t necessarily selections. [/quote]

I was wondering why new RegionSets couldn’t be instantiated by plugins.

[quote=“sublimator”]
Or even being able to say for some particular region[s] I would like it to be
parsed with a different syntax.
Expand selection to scope, apply syntax for region. selector contexted commands
suddenly work not to mention highlighting [/quote]

That would be great… I often have some code emitting code in another language (Perl/XML/JavaScript/HTML/Python…)
Making it automatic doesn’t sound easy but being able to set a ‘secondary language’ would help. For instance, when editing some Python code with HTML as a secondary language, we could check each string to see if it is plain text or HTML and highlight accordingly.

0 Likes