Code snippets in help files

This is how a code snippet looks in CHM help file and WebHelp:

Code Snippet in a CHM

And in PDF/RTF/Printed Manuals:

Code Snippet in a PDF