How to make code look good in documentation?
Hey guys, this may be a silly question but does anyone have any good methods for making code look good in documentation. I'm taking several class on embedded C and ASM programming and in our documentation we must show certain code snippets. Obviously in the forums we use the code block but I do not have that luxury. Has anyone found any method that they find presentable and also not too much of a pain to achieve?
Thanks for the input.
[455 byte] By [
DivZr0] at [2007-11-19 23:21:42]

# 1 Re: How to make code look good in documentation?
How are you creating the "documentation"? If you're using a word processor, just use a fixed width font. IIRC I used to use Courier in MS Word.
Viggy
# 2 Re: How to make code look good in documentation?
You can also insert the code in a text-box (available in MS Word) and even set the font color.
Kheun at 2007-11-9 13:00:32 >

# 4 Re: How to make code look good in documentation?
For documentation, POD is not bad :
http://search.cpan.org/dist/perl/pod/perlpod.pod
For syntax highlighting in html, there is GNU source highlight:
http://www.gnu.org/software/src-highlite/