From: Cherniavsky Beni Newsgroups: comp.os.msdos.djgpp Subject: Re: How about bracket matching??? Date: Thu, 29 Jun 2000 15:41:48 +0200 Organization: Technion Lines: 40 Message-ID: <395B521C.639EFE61@crosswinds.net> References: <38EBD03D DOT 895D1680 AT mindspring DOT com> <38EBFBD7 DOT 7D03CB96 AT hotmail DOT com> <38ee2d47 DOT 139819138 AT news DOT warwick DOT net> <38EF04B6 DOT 231F54A AT is DOT elta DOT co DOT il> <38F1A693 DOT 885A0366 AT mtu-net DOT ru> NNTP-Posting-Host: 132.68.54.8 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.06 [en] (WinNT; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sean Proctor wrote: > > On Mon, 10 Apr 2000 14:01:55 +0400, "Alexei A. Frounze" > wrote: > > >Well, what you discuss is really a taste of a programmer. > > > >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? > > > >IMO RHIDE should have a bracket matching feature. I've seen it in Watcom C IDE, > >it's nice and easy to use, but some hot keys should be used for that instead of > >mouse click. > > > >What do you think? RHIDE has Control-[ and Control-] for mathcing braces - '{', '}', IIRC. I have a new idea not seen anywhere: highlight the current "nesting path": highlight all opening brackets/braces/parens that are closed after the current cursor position. > > in my opinion if you have 10 nested loops, etc, you need to break your > program down a little in to functions... =) > > Sean If you program non-C /* freopen("/dev/null", "a", stdholyflames); */ e.g. Scheme, Lisp, you have tons of parens or have no code. An editor should be generous^H^H^H^Hgeneric enough to support different languages. Aside from that, I agree. -- Beni Cherniavsky (also scben AT t2 in technion) God is a Real Programmer. Read DNA for details.