On Wed, 2009-12-16 at 23:30 -0800, Greg Ercolano wrote:
>       One of my perl scripts freaked it out though.. somewhere in
>       the middle of a 'here' document it started bold/italic'ing
>       everything on beyond the EOF marker, and on out for 10 pages.

>       a2ps must think the '=' line is the beginning of POD
>       (Plain Old Documentation), and probably thinks everything
>       after it is docs. (shrug) But I'll bet the c++ parser is
>       really well tested though..

The way that it figures out how to pretty-print is fairly simplistic and
it does get confused at times. The authors of the the perl style sheet
(/usr/share/a2ps/sheets/perl.ssh on my box) go so far as to say:

   "As most interpreted languages, Perl is very free on its syntax, what"
   "leads to significant problems for a pretty printer.  Please, be kind"
   "with our try.  Any improvement is most welcome."

The c++ pretty-print does occasionally bold something spurious, but I
still find it very useful when reviewing source code in bed. I
especially like the companion pdiff program which produces a nice
word-based (as opposed to line-based) diff output.

There are a lot of options in (/etc/a2ps.cfg and /etc/a2ps-site.cfg)
that you'll probably want to tweak to get the output just-so. You may
also need to tweak sheet.map depending on how you name your source
files.

-Scott.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to