Dear Stackoverflow,
I have a whole project in Java and I need to make a code listing in part of my documentation with all my classes and code. I was wondering, what is the best way to export the code? Is it simply just copy and paste, or is there a way to export the code properly to keep all the formatting etc?
Basically I need to put the code into LaTeX, which I'm using to write my report, and before you ask yes i have to do this its not my choice!
Hope you understand what I mean
Thanks