Sujet : Re: Block Comments Or Rest-Of-Line Comments?
De : 433-929-6894 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 21. Mar 2024, 21:22:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240321132129.448@kylheku.com>
References : 1 2 3 4
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-03-21, Keith Thompson <Keith.S.Thompson+
u@gmail.com> wrote:
Richard Harnden <richard.nospam@gmail.invalid> writes:
[...]
And sometimes, when it's not a really a comment, but rather a block of
code I don't want right now:
>
#ifdef 0
...
#endif
>
I think you mean "#if 0".
>
I use that sometimes, but one disadvantage is that if you're viewing the
middle of a very large block of code, it can be hard to tell that it's
been "commented" out.
FWIW; Vim colors #if 0 blocks as if they were comments.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca