Subject: How to format C-Code?
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <firstname.lastname@example.org>
Date: 09/30/1996 11:02:35
what options are there to format C sourcecode for later printing
(postscript or dvi)?
indent -troff filename.c |troff >/tmp/out.ps
but this does not give postscript output as it is stated in the
troff manpage (look for -Tname option).
indent -troff filename.c |groff -Tps >/tmp/out.ps
gives something that is nearly what i want but all newlines are
missing it seems.
indent -troff filename.c |troff -Tps >/tmp/out.ps
gives not even a postscriptfile.
C-commands should be bold and function calls with many parameters should be
broken into more than one line. This breaking does not work for me
localanalyse = Analyseinit(projekt, 4, color, 0.0, prozent, formular, mode, transform, AUSLASSUNG);
this is processing output of indent. Indent does not break this line.