Ability to ignore commented braces

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hillsc
Posts: 35
Joined: Thu Jun 19, 2003 2:00 pm

Ability to ignore commented braces

Post by hillsc »

Using Ctrl+M to find matching pairs is very nice. A good enhancement to this would be to ignore braces in comments (if syntax highlighting is on, of course, since that's where the concept of a 'comment' is defined).

For example, this bit of perl:

Code: Select all

if ($foo eq 'bar') {
# if ($foo ne 'bar') {
  do($foo);
}
Currently, pressing Ctrl+M on the last curly brace matches it with a comment, not executable code. Worse, pressing Ctrl+M on that first curly brace typically gets even more unexpected results.

It'd be nice if it could ignore comments.
jetwhiz
Posts: 2
Joined: Fri Aug 11, 2006 3:06 am

Post by jetwhiz »

I agree, this is about the only downfall of textpad compared to the other text editors out there. And that isn't the only problem ... also

Code: Select all

block {
 .... "string { etc" ... 
} 
doesn't work as it should. it detects the brace inside the string as a working code brace. Hopefully these will get updated in a future release.
Post Reply