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

Home » Public Forums » archive » Re: How to comment out large section of codes in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
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 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: WINDOWS drag and drop into a draw widget
Next Topic: Re: Seasonal Variation in Trend Analysis

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

Current Time: Fri Oct 10 05:10:45 PDT 2025

Total time taken to generate the page: 0.72029 seconds