Printing LaTeX command without compiling it
You can put them in the verbatim
environment.
\begin{verbatim}
\it This is how you write in italic
\end{verbatim}
P.S. If you need to put them in-line, you can put them in the \verb==
environment:
\verb=\it This is how you write in italic=