Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
a2ps (the swiss knife of pretty-printing) actually already has support for doing this. a2ps uses different styles for its printouts and one of those is named 'matrix'.
it will generate a suitable matrix style printout. The default is to alternate the background each 6. line, but this can be adjusted. (I tested with a2ps 4.13b. I had a postscript-problem with an earlier version before I asked apt to kindly update it.)
I actually didn't find out how to adjust that value now, so I ended up patching matrix.pro (the prologue file). I changed the expand-line to: -Thorkild PS: Yes, a2ps knows perl already In reply to Re: printing source code green bar style
by thorkild
|
|