Possible Duplicate:
How best to include programming source code in LaTeX documents?
suppose a file with code (*.cpp, *.php, or whatever). There's a lot of symbols like '$', '{', '}' what will definetely be disliked by TeX. I want to make a documentation from a code file. Maybe you heard of some templates for working with code?
Thank you in advance!
listingspackage – pmav99 Sep 20 '11 at 10:08refmanclass is very useful for technical documentation, so it might be a starting point. As pmav99 said, thelistingspackage will also help you to output code with a fancy syntax highlighting.:-)That said, I usually prefer to use an external tool to generate my code documentation in the LaTeX format, e.g., Doxygen or Sphinx, because I can keep bothdocandsrcsync'ed.:-)– Paulo Cereda Sep 20 '11 at 10:33