Automatic bracket matching possible?

General questions about using TextPad

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

Post Reply
ggladsto
Posts: 3
Joined: Sat Jul 26, 2003 5:12 pm

Automatic bracket matching possible?

Post 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?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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
Hope this was helpful.............good luck,
Bob
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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 )
Post Reply