I would like to include some source code into an appendix at the end of my document. Is there any way of doing this?
I thought perhaps screen-shot the code and crop and paste it in… Obviously that is a silly thing to do and it doesn’t look professional. Is there another way?
I also tried pasting in code and formatting it with the monospace font. That looks okay, but there is no syntax highlighting. Is syntax highlighting a possibility? Or am I asking too much?
PS: Code is in C / C++