\documentclass{article}
\begin{document}
Normal text before verbatim.

\begin{verbatim}
This is verbatim text with \commands that should be preserved.
Code example: x = y + z;
\end{verbatim}

Normal text after verbatim.
\end{document}
