I wonder how to get the output of listings with code. Here is my MWE with output. Now I want to output of this listings too. Any help will be highly appreciated. Thanks
Code
\documentclass{article}
\usepackage{listings}
\usepackage{color}
\lstset{ % General setup for the package
language={[LaTeX]TeX},
basicstyle=\small\sffamily,
numbers=left,
numberstyle=\tiny,
frame=tb,
tabsize=4,
columns=fixed,
showstringspaces=false,
showtabs=false,
keepspaces,
commentstyle=\color{red},
keywordstyle=\color{blue}
}
\begin{document}
\begin{lstlisting}
\begin{document}
Welcome to \LaTeX.
\end{document}
\end{lstlisting}
\end{document}
tcolorbox
and itstcblisting
environment, however not withbegin{document
in it – user31729 Aug 15 '14 at 12:33