This question already has an answer here:
I would like to write a short guidelines of LaTeX for my students. In the spirit of some LaTeX manuals, I'd like to present the code and the result as follows,
This example illustrate more or less what I'd like to do.
Is the two-columns style realize with
How could I insert the code in a way it shows highlighted?
Any help is welcome. Cheers.