Page 1 of 1

Ability to ignore commented braces

Posted: Thu Jul 06, 2006 5:27 pm
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.

Posted: Fri Aug 11, 2006 3:14 am
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.