Re: How to comment out large section of codes in IDL? [message #56053 is a reply to message #56051] |
Fri, 28 September 2007 06:48   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
fullyu4@gmail.com wrote:
> On Sep 27, 6:41 pm, mankoff <mank...@gmail.com> wrote:
>> On Sep 27, 8:01 pm, full...@gmail.com wrote:
>>
>>> 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?
>> Use emacs idlwave-mode and then select region, then CTRL-c + ;
>>
>> -k
> Hello,
>
> Thank you very much. I've heard a lot of good thing about IDLWAVE, but
> unfortunately, I am used to use vim. Is there a alternative plug-in
> for vim or shall I force myself to start using emacs?
This block commenting feature is almost ubiquitous on modern editors. If they can't
already do it, they can be made to do so (e.g. I used nedit and it can now comment
selected blocks for a variety of languages that require the "line-by-line" type of block
comment).
I googled "vim block comment" and got the following (among others):
http://www.vim.org/scripts/script.php?script_id=473
http://notfaq.wordpress.com/2006/07/28/vim-comment-blocks-of -code/
The first details how to set up vim to do it, the second appears to indicate it's already
possible with the right combo of keystrokes.
cheers,
paulv
|
|
|