Syntax::Highlight::Shell

Syntax::Highlight::Shell is a Perl module to highlight shell scripts.
Download

Syntax::Highlight::Shell Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Sbastien Aperghis-Tramoni
  • Publisher web site:
  • http://search.cpan.org/~saper/

Syntax::Highlight::Shell Tags


Syntax::Highlight::Shell Description

Syntax::Highlight::Shell is a Perl module to highlight shell scripts. Syntax::Highlight::Shell is a Perl module to highlight shell scripts.SYNOPSIS use Syntax::Highlight::Shell; my $highlighter = new Syntax::Highlight::Shell; $output = $highlighter->parse($script);If $script contains the following shell code: # an if statement if ; then grep $USER /etc/passwd | awk -F: '{print $5}' /etc/passwd fithen the resulting HTML contained in $output will render like this:# an if statementif ; then grep $USER /etc/passwd | awk -F: '{print $5}' /etc/passwdfiThis module is designed to take shell scripts and highlight them in HTML with meaningful colours using CSS. The resulting HTML output is ready for inclusion in a web page. Note that no reformating is done, all spaces are preserved. Requirements: · Perl


Syntax::Highlight::Shell Related Software