I need to print the source code of a project that consists of a bunch of .h and .cpp files (I need to hand it in to my teacher). Is there an IDE or a program that lets you print (or export to PDF or Latex) all the files at once, possibly keeping the syntax highlighting? I tried with XCode and Visual Studio but they just allow to print one file at a time.
Share
GNU tools like a2ps or enscript can convert source code into postscript files that you can then print or convert to pdf. They support syntax highlighting for various languages, and they can bundle up multiple files into the same document.