multiline comments

rx do_not_use_this_email at hotmail.com
Wed Apr 19 15:03:16 EDT 2006




"Jorge Godoy" <godoy at ieee.org> wrote in message 
news:1296658.ifSUO08S9I at jupiter.g2ctech...
> rx wrote:
>
>> I have commented out a lot of C++ code and miss the block feature in
>> python more than I missed the nested comments in C++.
>> Besides nothing really strange happened.
>> Sometimes you just need to dissable some of the code temporarly as 
>> quickly
>> as possible, and I like that it is not higlighted any more, since I will
>> not look into it before I dissable the comment.
>
> This is how I do it: select the lines I want to comment and ask Emacs to
> comment that region.  It is the same command and method for "n" different
> languages and I don't care if there is multiline comment support or not.
> It is really as fast as inserting /* and ending with */ (in fact, I type
> less than to achieve that since I only use three keys, counting the
> Ctrl-Space to start the block).

It would be much nicer to have it in the language since there are many 
editors and many ways to do what you do (it would also make it more easy to 
make a editor).
Besides it could be done with two keys if that really important - but I 
doubt it.
But in a way you are also right if you use more than a few languages in the 
same editor, but then again the editor would still be able to do the 
commenting if you prefered that.
I don't understand the problem - why should comments (and I hope you believe 
there should be a one line comment at least) be restricted to one line.
It doesn't work that way for if, while, for. 





More information about the Python-list mailing list