X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07 Apr 2014 07:53 AM by  anon
Commenting a range of lines in a code
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
07 Apr 2014 07:53 AM
    Dear IDL Users, I would like to be able to comment out a range of lines in a code with a single entrances (at the end and at the beginning of the range). There are utilities like "toggle comment" but I am wondering, is there a way other than putting ; in front of every line? Thanks, - NG

    Deleted User



    New Member


    Posts:
    New Member


    --
    07 Apr 2014 01:42 PM
    Dear NG, The semi-colon needs to be in front of the line to be a comment. What you can do is to use the following: 1- select the lines of code that you want to comment 2- now, after selecting all the lines you want to add the semi-colon, press: Ctrl-; I hope that helps. Cheers, fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    10 Apr 2014 01:41 PM
    Thank you Fernando, I was mainly looking for something like we use in C++ or MATLAB, using a single line of opener/closer for the range we want to comment out. Putting ; in front of every line makes this looking confusing while I develop the code and constantly change things around. After a while the information comments and the commented-out codes start to get into each other.. Best regards, - NG
    You are not authorized to post a reply.