Home Download Buy Blog Forum Support

Highlighting the content of inner-brackets

Highlighting the content of inner-brackets

Postby jburnett on Tue Feb 21, 2012 1:19 am

Is it possible to highlight the region of the inner-most set of matched brackets? e.g. do something like the attached mockup?

I've seen some VIM themes that seem to do something like this, but it's not clear to me that thThemes/Sublime supports something like it. I have a feeling it's not, and this will turn into a patch/request for the HighlightBrackets plugin, but I figured it's better to see if it's possible to do natively first.
Attachments
sublime-inner-bracket.png
sublime-inner-bracket.png (30.94 KiB) Viewed 837 times
jburnett
 
Posts: 89
Joined: Wed Jul 27, 2011 9:23 pm

Re: Highlighting the content of inner-brackets

Postby iamntz on Tue Feb 21, 2012 6:17 am

Oh, that would be awesome. A very subtle change of background.
I always liked how xcode highlight brackets on hover over gutter... :D
iamntz
 
Posts: 898
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Highlighting the content of inner-brackets

Postby facelessuser on Tue Feb 21, 2012 6:40 am

This could easily be added to the BracketHighlighter plugin, but there would be a downside. The way ST2 regions work, when you highlight the region, you loose the syntax highlighting of the text.

Quick and dirty addition to BracketHighlighter.
Screen Shot 2012-02-20 at 11.39.34 PM.png
Screen Shot 2012-02-20 at 11.39.34 PM.png (40.94 KiB) Viewed 847 times
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: Highlighting the content of inner-brackets

Postby jburnett on Thu Feb 23, 2012 7:43 am

The way ST2 regions work, when you highlight the region, you loose the syntax highlighting of the text.


Oh that's too bad... well, I suppose that lands this in the wish category then. It would be interesting to see how this feels in practice, but I have a hunch there's plenty of higher priority wishes laying around :).
jburnett
 
Posts: 89
Joined: Wed Jul 27, 2011 9:23 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests