Write LaTeX with LaTeX [duplicate]

Possible Duplicate:
Typesetting LaTeX Source Code

Hi all, i would like to know suggestions on how can I write an explicative text of LaTeX using LaTeX. Till now I use \verb!SomeLatexinstruction! when i need to write an instruction. There are other solutions, that looks more elegantly?

-

marked as duplicate by TH., Hendrik Vogt, lockstep, Joseph Wright♦Dec 23 '10 at 20:26

Duplicate of Typesetting LaTeX Source Code‌​. – TH. Dec 23 '10 at 8:22

see package listings=> run texdoc listings

-

Take a look at the shortvrb package, too. For example \MakeShortVerb{|} will offer the notation |SomeLaTeXinstruction|.

-

The minted package.

-

If you want to show some LaTeX code side by side with its output, the showexpl package may be of some use here.

-