> In addition (or in place of mpage), I also always install a2ps since it
> does automagical syntax-highlighted printing for most development
> languages in addition to multiple pages per sheet.

        Cool, I've never used it, but I've definitely seen its output
        in laser printer bins before.. looks really nice, just tried it.

        And yes, it does seem to print g++ key words in bold, and seems
        to automatically recognize the file type which is handy. I'm
        definitely going to try using it from now on.

        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.

        I boiled it down to the following tiny perl script;
        a2ps prints everything after the line that starts with
        '=' in bold/italic, and it stays that way on to the end
        of the script:

---- snip
#/usr/bin/perl -w
sub Hello()
{
    print << "EOF";
        This is a test.
        So is this.

=      Frames: 1-100     <-- problem starts here
=      Title: Testing

        This is a test
        This is also a test.
EOF

    return("OK");
}

###
### MAIN
###
{
    print "--- About to run Hello()\n";
    Hello();
    print "--- Done.\n";
}
---- snip

        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..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to