I’m using Latex to write a program listing all my code and I am following this:
http://texblog.wordpress.com/2008/04/02/include-source-code-in-latex-with-listings/
It works, but my code runs of the side of the page. How can I fix this?
Additional question: How can I get it to highlight syntax? I do have lang set to Java.
Try something like this:
which produces:
alt text http://img260.imageshack.us/img260/1608/codes.png