On Apr 3, 6:10 pm, Pete Becker <p...@versatilecoding.com> wrote:
On 2011-04-03 09:34:17 -0400, James Kanze said:
The easiest way to comment out a block of code, and being sure
that the casual reader clearly sees that it is commented out, is
to prefix all of the lines with "// ". To recover it, delete
the first four characters in the lines. With any reasonable
editor, both operations are trivially simple. (With my editor,
the first is ":s:^:// :" and the second ":s/....//".)
With my editor, the first is cmd-/ and the second is cmd-/. Works for
all supported languages, too: C, C++, LaTeX, HTML, ...
Yes. I could certainly configure my editor with such language
dependent commands, but I've never bothered. I guess I learned
all of this too long ago, and now have some very complicated
commands programmed into my fingers, so I often don't bother
with "reprogramming" the editor. Or even looking for packages
that would do it for me. (But I think what your describing
comes out of the box with emacs.)
I'm describing what comes out of the box with TextMate. But since
you're doing Windows stuff, you can't use it. Mac only. <g>
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The