Outputting Code

Hey guys, i wasn't really sure where to put this topic.

I have written arduino code and am now writing a report on it, however i'd like to include my code in the report. Is there any way to output the code that maintains the colours, formatting and relative positioning of the comments?

Thanks

Are you using Word?

I'm using Latex however i can use word just as easily

This may be what you need: http://forum.arduino.cc/index.php?topic=181136.msg1342622#msg1342622

Thank you!

A bit of information on notepad++ and colors.

For future people who require latex, here’s a way to highlight Arduino code using lstlistings:
https://github.com/trihedral/AdruinoLatexListing