[Tex/LaTex] Multiline comment

comments

In tex there is a way to do a comment multiline like in C, C++ /* comment */ or in HTML <!-- comment -->? I'm currently using \ifx

\ifx true false
My multiline comment
that will not be in the
output pdf
\fi

but this may create a problem if I put inside the comment something like \someundefcommand.
I wish something like the standard % comment so I can put inside the comment I want.

Best Answer

Use the verbatim package.

\documentclass{article}
\usepackage{verbatim}
\begin{document}
\begin{comment}
some comment
\someundefinedcommand
\end{comment}
a
\end{document}