Re: Begin-End matching in IDLDE? [message #77948] |
Sun, 16 October 2011 15:05 |
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  |
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  |
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
|
|
|