Re: How to comment out large section of codes in IDL? [message #56047 is a reply to message #56046] |
Fri, 28 September 2007 09:40   |
R.G.Stockwell
Messages: 163 Registered: October 2004
|
Senior Member |
|
|
<fullyu4@gmail.com> wrote in message
news:1190937705.321763.225700@r29g2000hsg.googlegroups.com.. .
> As title. In C/C++, we can comment out many lines at once by /* */,
> but in IDL, it seems the only way is to put ";" in front of every
> line. Is there a better way?
Block comments have been mentioned (under the edit menu in the IDLDE).
Also, many editors have "column mode" where you can select
row 1, for multiple columns and paste in the ";" (ultra edit can do this).
Another way, it to programatically make a IF block.
dothispart = 1
if dothispart then begin
...
endif
That is actually pretty handy to do, especially if you are in an
exploratory mood looking through data. I also use this to switch
between screen graphics, and postscript graphics for instance.
Cheers,
bob
|
|
|