NAME

syntax-highlight-p6 - A command-line tool to highlight Perl 6 code

USAGE

# read from standard input
syntax-highlight-p6

# print ansi-escaped text for 'comp_unit'
syntax-highlight-p6 foo.pl

# print separate html, css and javascript files
syntax-highlight-p6 --full-html=foo.full.html --clean-html foo.pl

# print ansi-escaped text for with 'statementlist' as the top-level rule
syntax-highlight-p6 foo.pl statementlist

# write simple html output to foo.pl.html
syntax-highlight-p6 --simple-html=foo.pl.html foo.pl

# write simple snippet html output to foo.pl.html
syntax-highlight-p6 --snippet-html=foo.pl.html foo.pl

# write simple ansi-colored output to STDOUT
syntax-highlight-p6 --ansi-text=- foo.pl

DESCRIPTION

The tool uses Syntax::Highlight::Perl6 to highlight perl 6 source code into html, and ansi escape color sequences.

SEE ALSO

See Syntax::Highlight::Perl6

AUTHOR

Written by Ahmad M. Zawawi <ahmad.zawawi at gmail.com>

LICENSE AND COPYRIGHT

The same license as Syntax::Highlight::Perl6