I'm lazy and I want to save on typing.
So I have
\newcommand{\bv}{\begin{verbatim}}
\newcommand{\ev}{\end{verbatim}}
\bv
Hi, this should be verbatim
\ev
in my document, but this produces an error:
Runaway argument?
^^MHi, this should be verbatim^^M\ev^^M^^M\end{document}^^M
! File ended while scanning use of \@xverbatim.
What's the matter here?
\evexpanding so the end of the environment is never seen. – David Carlisle May 17 '18 at 20:59