Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    HTML::SyntaxHighlighter 0.03

    Download button

    No screenshots available
    Downloads: 345  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alex Bowley | More programs
    Perl Artistic License / FREE
    September 14th, 2007, 02:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::SyntaxHighlighter description

    A Perl module for converting raw HTML into html-escaped, highlighted code

    HTML::SyntaxHighlighter is a Perl module for converting raw HTML into html-escaped, highlighted code; suitable for inclusion within a web page.

    SYNOPSIS

    Standalone

    my $p = HTML::SyntaxHighlighter->new();
    $p->parse_file( "$file" ) or die "Cannot open '$file': $!"...


    From within HTML::Mason

    < & /lib/header.m, title => "Formatted source code for '$file'", stylesheet => [ 'html_highlight.css' ] & >

    < %perl >
    my $path = "/usr/data/www/hyperspeed.org/projects/html/examples";
    my $p = HTML::SyntaxHighlighter->new(
    out_func => sub{ $m->out( @_ ) },
    header => 0,
    );


    $p->parse_file( "$path/$file" ) or die "Cannot open '$path/$file': $!";
    < /%perl >

    < & /lib/footer.m & >

    < %once >
    use HTML::SyntaxHighlighter;
    < /%once >

    < %args >
    $file
    < /%args>


    This module is designed to take raw HTML code, either from a variable or a file, html-escape it and highlight it (using stylesheets), rendering it suitable for inclusion in a web page. It is build on top of HTML::Parser.

    It is intended primarily for people wanting to include 'example HTML code' in an dynamically generated web page (be it created with CGI, HTML::Mason, or whatever); if you find other uses, please let me know.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    syntax highlight | HTML converter | Perl module | HTML | syntax | highlight

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM