snippet_html

This is same as highlight_perl6_full when --snippet-html is used. No more javascript tree viewer or anything fancy. Only nodes that have a color are printed. Not optimal but works ;-)

simple_html

This is same as highlight_perl6_full when --simple-html is used. No more javascript tree viewer or anything fancy. Only nodes that have a color are printed. Not optimal but works ;-)

full_html

Generates the Perl6 highlighted HTML string for STD parse tree provided. The resources can be inlined (by default) or externalized (--clean-html).

ansi

This is same as highlight_perl6_full when --ansi-text is used. No more javascript tree viewer or anything fancy. Only nodes that have a color are printed. Not optimal but works ;-)

highlight_perl6_yaml

Spits out YAML that can be useful for the future

redspans_traverse
Walk the path that no one wanted to travel ;)
escape_html

Converts some characters to their equivalent html entities

NAME

Syntax::Highlight::Perl6 - Perl 6 source code highlighter

SYNOPSIS

use Syntax::Highlight::Perl6;

my $crayon = Syntax::Highlight::Perl6->new(
  $file => \*STDIN
);
print $crayon->snippet_html;
print $crayon->simple_html;
print $crayon->full_html;
print $crayon->ansi;
print $crayon->yaml;

DESCRIPTION

Highlights Perl 6 source code using STD.pm into html, ansi-escaped text and YAML.

EXPORT

None by default.

SEE ALSO

Discussion about this module is usually in #perl6 @ irc.freenode.net

AUTHOR

Ahmad Zawawi, <ahmad.zawawi@gmail.com>

Written by Ahmad M. Zawawi (azawawi), Moritz Lenz and Paweł Murias (pmurias)

The project idea was inspired by Moritz Lenz (moritz) See http://www.nntp.perl.org/group/perl.perl6.users/2008/07/msg788.html

The initial STD tree traversal code was written by Paweł Murias (pmurias).

The redspans traversal code was written by Larry Wall (TimToady). redspans stands for "...'red' for "reductions", and 'spans' from the from/to span calculations"

The browser code was written by Ahmad M. Zawawi (azawawi)

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Ahmad Zawawi

This library is free software; you can redistribute it and/or modify it under the same terms asssssss at your option, any later version of Perl 5 you may have available.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 57:

'=item' outside of any '=over'

Around line 435:

You forgot a '=back' before '=head1'

Around line 468:

Non-ASCII character seen before =encoding in 'Paweł'. Assuming UTF-8