News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Matching brace command

Started by adjohnson, May 25, 2005, 06:25:11 AM

Previous topic - Next topic

adjohnson

Hi,

Thanks for the incredibly cool and useful program.

Is there a brace matching command? This command searches forward in the file from the cursor position to find an open or close brace.  If an open brace is found, the search continues in a forward direction until a matching close brace is found at the same nest level.  If the first brace found is a close brace, the search is performed in the reverse direction until a matching open brace is found at the same nest level.

Andrew

Pelle

Quote from: "adjohnson"Thanks for the incredibly cool and useful program.
Thanks! :-)

Quote from: "adjohnson"
Is there a brace matching command?
Well... maybe not exactly as you describe. If the cursor is on a {, (, [, you can press F12 to find the matching ], ), }. The search is not perfect - it will find these characters in strings too, for example. It works most of the time, though...

Pelle
/Pelle

adjohnson

=D> Thanks, that's what I needed to know.

Andrew