Author Topic: Nesting background color for brackets ([{}])  (Read 408 times)

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Nesting background color for brackets ([{}])
« on: July 29, 2010, 08:21:56 am »
Would be great.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Nesting background color for brackets ([{}])
« Reply #1 on: July 30, 2010, 12:52:37 pm »
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.

Offline knn

  • Newbie
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Nesting background color for brackets ([{}])
« Reply #2 on: July 30, 2010, 04:20:26 pm »
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 "(.*\()"?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Nesting background color for brackets ([{}])
« Reply #3 on: August 02, 2010, 12:18:30 am »
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.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
496 Views
Last post February 25, 2009, 10:50:40 pm
by Arthur
1 Replies
538 Views
Last post May 04, 2009, 10:32:40 pm
by alex
2 Replies
515 Views
Last post September 06, 2009, 10:58:48 am
by Stefan
0 Replies
834 Views
Last post November 06, 2009, 11:06:13 am
by alex
0 Replies
420 Views
Last post June 19, 2011, 01:05:34 pm
by Anonymous