Page 1 of 1

Automatic bracket matching possible?

Posted: Mon May 12, 2008 3:15 am
by ggladsto
I've recently been using nedit a lot at work and have come to love it's ability to automatically highlight a corresponding bracket. Whenever the cursor is placed next to a 'close' bracket the corresponding 'open' bracket is highlighted (and vice-versa).

It would seem this should be a function of syntax highlighting. Searching textPad help, and the forum, I can't come up with a way to make TexPad behave like this.

Using crtl-m is stinky. Any ideas?

Posted: Mon May 12, 2008 6:40 am
by Bob Hansen
It's a different approach in TextPad. Select one end, Press CTL-M a number of times to jump back and forth between the brackets

Posted: Tue May 13, 2008 5:31 am
by MudGuard
You could try to create a macro which does

1. output the )
2. jump to the corresponding ( (Ctrl-M)
3. jump to the corresponding )
4. maybe repeat steps 2 and 3 a few times
5. step to the right to unselect the )

Then give the macro the keyboard association with key )