I don't print out much code. But when I would travel in the midst of developing some code I couldn't part with for a while, I have been known to use a2ps (anything to postscript). I'd have to review the man page again, but I would print out a module two columns to a page to good effect. It lost very little in translation and offered some suprisingly useful highlighting.

The other day I read something here about editors for working in perl and based on a recommendation in that thread, installed and tried out scite. It provides menu options for exporting to html, rtf, pdf, latex and xml. I'm curious to see the LaTeX. And I tried the pdf and it looks good. If I have X available and am not limited to cli tools, it has likely just become my preferred tool for this task.

-- Hugh

if( $lal && $lol ) { $life++; }

In reply to Re: hardcopy printout of perl code by hesco
in thread hardcopy printout of perl code by andyford

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.