What is the best way to have blocks of code between my paragraphs? My document is about programming and I need to make a clear distinction between text paragraphs and code samples.
The first line shouldn't be indented for code samples and I need a fixed width font such as Courier New.
Any idea how to get this done?
\begin{verbatim}in latex but listings gives (lots) more options. – David Carlisle Aug 23 '12 at 15:53