In LaTeX, % can be used for single-line comments. For multi-line comments, the following command is available in the verbatim package.
\begin{comment}
Commented code
\end{comment}
But is there a simple command like /* code */ in C?
|
In LaTeX,
But is there a simple command like |
|||||||||
|
|
No, but you can define something close:
|
|||||||||||
|
|
Following the C code paradigm, where one can use the preprocessor directives
something similar can be done in
The commented parts can be easily activated by replacing |
||||
|
Here's a poor man's version of the answer linked by Aditya above. It doesn't require ConTeXt but it does need to be compiled with LuaTeX. With it you can use C style comments: This input:
Gives this output:
|
||||
|
|