Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You could use Syntax::Highlight::Universal (it needs a patch from RT to help it compile). If you just have it tokenize and create the HTML from it, it's simply elements with classes. Then you can control every detail of the color using CSS.

    I've done this before for with a Spork plugin that would let me easily wrap my code samples with something like .syntax perl
    or .syntax html

    It was really useful when I give multi language talks (Perl/JavaScript/HTML/CSS).

    I never put my plugin up on CPAN or into SVN, so when I last upgraded laptops it got lost, but I hacked it together in one afternoon, so it couldn't be that hard.
    • I don't get it. How can CSS help me produce color RTF?
      --
      rjbs
      • Well, I feel silly. For some reason I thought you were doing syntax hilighting into HTML and then converting to RTF. But you're using RTF::Writer, duh. Sorry for the noise...
        • No problem. If nothing else, now I know I can look at one more highlighting engine eventually! Thanks.
          --
          rjbs