I am looking for program, which takes as input C-source, and prints it
"pretty". No, I don't mean like bc would do, changing indenting etc, but
the following:
print character constants and strings in bold
print comments shaded or shadowed
maybe something else, but that's what i want.
It can be in shell, ksh, perl or C. It can generate output for either
HPLJ, epson or (even better) Postscript.
It would be nice, if (in case of PS) it can also put two pages onto one,
wrap lines and put a nice header, in the style that so many popular
programs use. But that functionality could also be provided by another
program, or by a separate postscript module to b included when nedded.
Oh yes, before I forget. It should not choke on syntax that does not exactly conform with C. Ie. it should only check for strings and comments etc, but not
necessarily examine avery variable.
Is there anything like it out there?
aTdHvAaNnKcSe
Mathias
--
SW International Systems Pte Ltd | "I've got a plan so cunning
14, Science Park Drive | you could put a tail on it and
Singapore Science Park | call it a weasel".. Black Adder
Singapore 0511 |
Tel: (65) 778-0066 |
Fax: (65) 777-9401 | swispl@solomon.technet.sg
*Eifersucht ist eine Leidenschaft, die mit Eifer sucht, was Leiden schafft*