mojotoad has asked for the wisdom of the Perl Monks concerning the following question:

Anyone have any suggestions for "fancy printing" (perl) code listings on windows?

Traditionally I've always used enscript on unix for this task, landscape mode (rotated) and two pages of code per page of paper. Note that I'm more concerned with the page layout here than actual context highlights in the code itself. "Straightforward" solutions such as using some of the more common word processors out there to rotate and split pages don't seem to be sufficiently adept with the fonts. (with enscript, you are quite literally getting two pages per page of paper -- each 'page' has the same content as if you had printed one page per page).

I'll be darned if I can find anything as useful in the windows world. Am I stuck with trying to run enscript from cygwin?

Thanks,
Matt

Replies are listed 'Best First'.
Re: Fancy Printers for Code on Windows
by perrin (Chancellor) on Apr 19, 2003 at 19:13 UTC
    You can get very nice HTML output from perltidy and then print that with your local web browser.
Re: Fancy Printers for Code on Windows
by Thelonius (Priest) on Apr 19, 2003 at 21:17 UTC
    You can do n-up printing with PrintFile. And it's free.
Re: Fancy Printers for Code on Windows
by Hero Zzyzzx (Curate) on Apr 19, 2003 at 18:52 UTC

    Xemacs (or Emacs proper) does an excellent job. Xemacs is easier to configure for specific fonts and sizes than Emacs.

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

Re: Fancy Printers for Code on Windows
by Popcorn Dave (Abbot) on Apr 19, 2003 at 20:43 UTC
    If I understand correctly what you're trying to do, you might have a look at a product called ClickBook from Blue Squirrel Software. It will do 2 up, 4 up, booklet, double sided, etc. It's basically a printer driver that you add to your system. I think it runs around $25-30.

    Hope that helps!

    There is no emoticon for what I'm feeling now.

Re: Fancy Printers for Code on Windows
by spurperl (Priest) on Apr 20, 2003 at 05:45 UTC
    SciTe
    has a very nice printing ability, especially for source code. You can also export to HTML and RTF and print from there, if you wish. I especially like its ability to print nicely even on blacknwhite printers.
Re: Fancy Printers for Code on Windows
by digger (Friar) on Apr 20, 2003 at 12:41 UTC
    I don't know what type of printer you are trying to print to, or what application you are printing from, but most modern Windows print drivers have the ability to do what you need built into them. This assumes your application has access to the Windows print driver, which is not always the case.

    digger