I am using LaTeX to write a document about Python. This document will contain code snippets (examples).
I could use the verbatim
environment, but before I embark onto it, I'd like to know if you are aware of any LaTeX style file which provides an environment for Python code. Syntax highlight would be a plus.
Thanks.
Edit:
I must point out that the package minted
is exactly what I was looking for. It has beautiful syntax highlighting and it is very simple to use. Check this question to know more about it.