Parenthesis/bracket balancing?

General questions about using TextPad

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

Post Reply
Joey Smith

Parenthesis/bracket balancing?

Post by Joey Smith »

I would love to be able to configure TextPad to help me balance my brackets/parens. This is especially useful when programming in languages
like Lisp, or when marking up XML. I've looked long and hard in the config options, but it does not seem to be available. Is this something that others might be interested in seeing in a future version, or am I perhaps just not looking hard enough to find it in the current versions?
Andreas

Re: Parenthesis/bracket balancing?

Post by Andreas »

What do you mean by "balancing"?
Ctrl-M jumps to the matching brace/bracket/parenthesis/...
Ctrl-Shift-M does the same but selects the stuff.

Is this what you are looking for?
crackwitz
Posts: 13
Joined: Sun Oct 10, 2004 8:14 pm

Post by crackwitz »

I decided to revive this thread because I can make use of that feature as well. I once had the opportunity to test the feature in another program and I liked it. It is really handy when you press an opening brace and the closing one appears after the cursor so you can keep in the flow and needn't care about such a minor thing like a brace. That is not only convenient with round braces, but also with square and curly braces or even xml tags (and probably any other kind of block-creating text). Combined with the already implemented auto-indenting feature, that would make my life a bit more convenient.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

You can add pairs of braces, brackets, parenthesis, etc. to a Clip Library that will insert both braces and allow you to fill in the center. And/Or you can select an area and the braces will be inserted around the selection.
Hope this was helpful.............good luck,
Bob
crackwitz
Posts: 13
Joined: Sun Oct 10, 2004 8:14 pm

Post by crackwitz »

Thanks, but that sounds not quite like what I was looking for. I did a perfunctory search for "plug in" in hope of maybe finding some way of writing a plug in that does the "parenthesis balancing" at real-time, so I don't need to press any keys (except for the opening parenthesis) to activate the feature. I didn't find any useful threads.
I guess, such a plugin system could be interesting in general. People can implement what they feel is neccessary and later offer the plugin for download. The already implemented add on system is of some use, but it takes a key binding to use the assigned tools.
Post Reply