PB4B4: Finding matching parentheses in PB IDE ?

Working on new editor enhancements?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

PB4B4: Finding matching parentheses in PB IDE ?

Post by USCode »

How do I find a parentheses' matching parentheses in the PB IDE?

Do I put the cursor before or after the starting parentheses "(" and then hit what key (combination) to find it's matching end parentheses ")" ?

This isn't typically too much of a problem ever in PB but can be occasionally handy?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB4B4: Finding matching parentheses in PB IDE ?

Post by PB »

You put the cursor BEFORE a closing parentheses, and the Status Bar in the
editor will show you the command that the NEXT parentheses relates to.

Code: Select all

a$=" test "
b$=Left(Trim(Mid(a$,1,2)))
In the above, put the cursor between the 2 and the first closing parentheses.
The Status Bar will show the Mid command, so you know the next parentheses
is for Mid. If you now cursor right ONCE, the Status bar shows Trim, so you know
the next parentheses is for the Trim command. And so on.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Post by USCode »

Hmmm, I think it would be nicer if I could put the cursor before the opening parentheses OR after the closing parentheses and be able to hit some key-combination to have the two matching parentheses temporarily highlighted.

I'd just settle for some way to have the matching cursor more overtly indicated.

Not asking for much, am I?!?! :wink:
Post Reply