Nesting background color for brackets ([{}])

Started by knn, July 29, 2010, 09:21:56 AM

Previous topic - Next topic

alex

Hi knn,

layered background colors used to show scope nesting levels already(View->Editor->Nesting Level). If your scope start with one of the brackets and closed by another, than is what you want. For example as it done for all C-like syntaxes.
If you want to have this feature for all bracket type, just modify the schema of the syntax you are working and create additional scope blocks for rest of brackets.
But I do not want to do this for all brackets by default, because this is missusage, from my point of view. And also performance critical.
Especially, if you will take into account, colored braces feature coming in 1.50.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

knn

Aaah, colored braces. Sounds good.

I wanted nested braces (for example for regular expressions which can get messy easily) but I will wait for the color braces. Will they honor escape'd braces like "(.*\()"?

alex

No. But they also will not work for strings (generally this can be configured, but can have more problems than benefits).
Parsing is only done for non-text styles (text styles are strings, comments etc) and only based current syntax rules but not regular expression rules, for example.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]