The listings package is quite nice and very flexible (e.g. different sizes for comments and code).
Fabian Steeg
2009-02-25 15:51:45
The listings package is quite nice and very flexible (e.g. different sizes for comments and code).
For simple document, I sometimes use verbatim, but listing is nice for big chunk of code.
After some lengthy googling, it turns out that lstlisting is able to format code nicely, but it requires a lot of tweaking.
Wikibooks has a good example for the parameters you can tweak.
(Sorry to answer my own question ! )