To have syntax highlighting for codes in LaTex
I would like to know how you can syntax highlighting in a LaTex document for codes.
An example of such a document is this guide about a Python library and Page 9.
Perhaps, the document is not built by LaTex. Perhaps, by Markdown and with some addons.
I'm guessing that you can look at Prettify. You might be able to create a custom CSS file for LaTeX and get Prettify set up for it...
http://code.google.com/p/google-code-prettify/
I use this plug-in on my website: http://rsolberg.com/ViewBlog/2
StackOverflow also uses it!
The listings package is one way to include syntax-highlighted source code listings in a LaTeX document. For other options, see the relevant entry in the TeX FAQ.