comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Begin-End matching in IDLDE?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Begin-End matching in IDLDE? [message #77948] Sun, 16 October 2011 15:05
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Oct 13, 11:55 pm, Henry Throop <henry.thr...@gmail.com> wrote:
> Does anyone know if there's a way to automatically match BEGIN-END
> blocks in IDLDE? I'm using 8.1. There was a Vim plugin that claimed to
> do this too but I wasn't able to get it working.
>
> As we've all done from time to time, I have a big piece of code that
> won't compile now because I must've deleted an END statement somewhere
> in the middle of it...
>
> Thanks,
> -Henry

Hi Henry,

Back in the '90's, Mitchell Grunes had some handy code to do this for
Fortran and IDL.

See http://mgrunes.com/diagram/diagram.html

I last used it on a VMS system, so I don't know how current Mitchell's
work is.

HTTH,

Andrew
Re: Begin-End matching in IDLDE? [message #77956 is a reply to message #77948] Fri, 14 October 2011 19:17 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Oct 13, 6:55 am, Henry Throop <henry.thr...@gmail.com> wrote:
> Does anyone know if there's a way to automatically match BEGIN-END
> blocks in IDLDE? I'm using 8.1. There was a Vim plugin that claimed to
> do this too but I wasn't able to get it working.
>
> As we've all done from time to time, I have a big piece of code that
> won't compile now because I must've deleted an END statement somewhere
> in the middle of it...
>
> Thanks,
> -Henry

The IDLWAVE mode for Emacs can do this-- I actually use viper-mode (VI
emulation) and idlwave-mode together, which gives me the VI syntax
with the Emacs windowfancy.
IDLWAVE does this in two ways, but the most applicable is that hitting
tab at each line will automatically indent according to the
FOR,WHILE,etc. statements. This makes it relatively easy to locate
missed ENDs.

In emacs, you just do 'Alt-X idlwave-mode'. Lots of documentation
here: http://idlwave.org/
Re: Begin-End matching in IDLDE? [message #77975 is a reply to message #77956] Thu, 13 October 2011 10:04 Go to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On 10/13/2011 7:55 AM, Henry Throop wrote:
> Does anyone know if there's a way to automatically match BEGIN-END
> blocks in IDLDE? I'm using 8.1. There was a Vim plugin that claimed to
> do this too but I wasn't able to get it working.
>
> As we've all done from time to time, I have a big piece of code that
> won't compile now because I must've deleted an END statement somewhere
> in the middle of it...
>
> Thanks,
> -Henry

The short answer is no, unfortunately. The WB does bracket- and
parenthesis-matching, though, so this would be a good feature to add.

The tangential answer (which is not applicable here) is the WB provides
code templates which stub out control statement blocks. I have a short
demo video here:

http://www.ittvis.com/portals/0/webinar/workbench-templates- 1/code-templates-using.html

mp
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: what is the highest subscript in the array?!?
Next Topic: How to overwrite a variable in netCDF file?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:33:40 PDT 2025

Total time taken to generate the page: 0.00490 seconds