Brackets Highlighting

General questions about using TextPad

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

Post Reply
YoGi

Brackets Highlighting

Post by YoGi »

Hello !

Is it possible to highlight the associate matching bracket when the cursor is over a bracket ? (u know, like in nEdit..)

If not, this would be an excellent feature to add... Hope it's possible !

Thx for all
Andreas

Re: Brackets Highlighting

Post by Andreas »

Don't remember whether it is standard or whether I configured it so, but when I position on a bracket - any of ([{<>}]) and press ctrl-m, the curser jumps to the matching bracket, shift-ctrl-m selects the bracket and its content.
YoGi

Re: Brackets Highlighting

Post by YoGi »

yep i know that, but u have to press ctrl-m to get the matching bracket. But it could be very useful to hightlight directly the matching bracket, don't u think ? (like in emacs or nedit). So my question is to know if it's possible :))
Andreas

Re: Brackets Highlighting

Post by Andreas »

You could create macros which do
insert a ), then do ctrl-m ctrl-m
and assign this macro to the ) key
then similar macros for >, } and ]

I did not test this - don't know whether it works ...
Randall McDougall

Re: Brackets Highlighting

Post by Randall McDougall »

That wouldn't just hilite, it would jump you to the bracket and overtype it if you were typing rapidly ... I very much doubt that's what you want. For syntax hiliting style bracket matching you real need to have builtin support.
Post Reply