delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/10/09:11:08

Date: Mon, 10 Apr 2000 14:18:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: How about bracket matching???
In-Reply-To: <38F1A693.885A0366@mtu-net.ru>
Message-ID: <Pine.SUN.3.91.1000410141443.23677E-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019