NO

Author Topic: Matching brace command  (Read 4554 times)

adjohnson

  • Guest
Matching brace command
« on: May 25, 2005, 06:25:11 AM »
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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Matching brace command
« Reply #1 on: May 25, 2005, 06:42:55 PM »
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

  • Guest
Brace matching
« Reply #2 on: May 26, 2005, 09:18:46 AM »
=D> Thanks, that's what I needed to know.

Andrew