Skip to content

Instantly share code, notes, and snippets.

@colomon
Created November 9, 2009 13:18
Show Gist options
  • Select an option

  • Save colomon/229934 to your computer and use it in GitHub Desktop.

Select an option

Save colomon/229934 to your computer and use it in GitHub Desktop.
use STD;
use Syntax::Highlight::Perl6;
my @input = <>;
my $input = join "", @input;
# Creates the Perl6 syntax highlighter object
my $p = Syntax::Highlight::Perl6->new(
text => $input
);
# Prints html that can be embedded in your pages
print $p->snippet_html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment