I am using noweb to document my C++ and C code. In the pdf file (generated after weaving and using pdflatex) some of the code is slightly off:
>>
and<<
turn into proper opening and closing guillemets;--
turns into an n-dash.
My weaving command is:
noweave -latex -delay -x foo.nw > foo.tex
Edit: so I probably need to use a prettyprinter. Those that are available do way too much. I will look into it and if I find a straight-forward solution I will share it.