I need a little help.

I'm writing a document in which I want to show an example of latex file.
And have problem with syntax, how to do it that it be as in picture.

\begin{lstlisting}

\begin{document}
\documentclass[a4paper]{article}
Wellcome to the first \LaTeX document!
\end{document}

\end{lstlisting}


OUT: Wellcome to the first LaTeX document!

I want to display as in picture:
Horizontal display of code and display of it in a LaTeX document...-latex_example.png
How to code it for horizontal display? Tabular?

Thank you.