Date: Mon, 10 Apr 2000 14:18:42 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Alexei A. Frounze" cc: djgpp AT delorie DOT com Subject: Re: How about bracket matching??? In-Reply-To: <38F1A693.885A0366@mtu-net.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 10 Apr 2000, Alexei A. Frounze wrote: > But everyone of you has noticed that matching open and close brackets is a real > pain, if your program has up to 10 nested cycles/loops or even composite > operators. Especially if this part of source doesn't fit entirely to the screen. > > What do you suggest here, huh? I suggest Emacs. It has two related features: one, enabled by default, causes the cursor to momentary jump to the matching parenthesis when you type the closing paren (if the matching paren is outside the screen, the line with that paren is echoed in the bottom line). The other feature, which is optional, automatically highlights the matching paren in special color when you move the cursor to some paren. If the paren is unmatched, it is highlighted in a different color, to draw your attention. Emacs also has a special key that will move to the matching paren/brace.