This is a bug in the editor -- with usable side-effects:
/*
These
lines
are
a
comment
// */
//*
But
not
these
lines
// */
I.e. adding/removing a single slash can switch off/on
a large block of code (a nice trick published some
time ago on one of these newsgroups; dont't know
anymore by whom).
A two-level nesting of comments is possible by
using both types of comments; this works:
/*
comment
// comment
comment
*/
// comment
// /* comment
// comment
// comment */
// comment
Prefixing many lines by "//" is easy in the windows
version: click on the beginning of the first line to
become a comment, then shift-alt-click on the
beginning of the last line to become a comment.
This gives a long vertical cursor. Then type "//"
(without the apostrophes) -- that's all.
Or get this long vertical cursor by alt-dragging
from the beginning of the first to the last line.
And of course "//"-comments can be nested
without limitation:
// comment
// comment // comment
// // comment
//// comment
// comment
Sputnik
Post a reply to this message
|