App-perlhl

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

DESCRIPTION
    App::perlhl is the application class backing perlhl.

METHODS
  new
    This instantiates a new App::perlhl object. It takes a hashref of
    options:

    *   html

        If true, the output will be an HTML fragment suitable for publishing
        as part of a web page. NOTE: In the future, this might output a
        whole valid document.

    The default is to output ANSI colour codes suitable for printing to any
    reasonable shell or terminal (which probably means you have the one
    that'll break -- well it works on mine, so neener neener).

  run
    Unsurprisingly, this runs the application. The method takes a hashref of
    options, and an arrayref of filenames to highlight. If there are no

README.mkdn  view on Meta::CPAN


# METHODS

## new

This instantiates a new App::perlhl object. It takes a hashref
of options:

- html

    If true, the output will be an HTML fragment suitable for publishing as part
    of a web page. __NOTE:__ In the future, this might output a whole valid document.

The default is to output ANSI colour codes suitable for printing to any
reasonable shell or terminal (which probably means you have the one that'll
break -- well it works on mine, so neener neener).

## run

Unsurprisingly, this runs the application. The method takes a hashref of options,
and an arrayref of filenames to highlight. If there are no filenames, defaults to

bin/perlhl  view on Meta::CPAN

=item B<--help>, -h, -?

Opens this man page and exits.

=item B<--version>

Prints the version of this program and supporting libraries.

=item B<--html>

Output HMTL fragment instead of ANSI terminal escapes.

=back

=head1 USE

Provide input on stdin to B<perlhl> to highlight it to stdout with ANSI colour
escapes.

    perlhl < script.pl

It is not recommended to provide multiple files on stdout, since they'll be
concatenated. This makes it impossible to know where one ends and the next
begins, and will yield inferior syntax highlighting results. To highlight
multiple files, provide filenames on the command line:

    perlhl lib/My/Module.pm lib/My/Module/Again.pm

Provide the B<--html> option to output an HTML fragment. In
the future, this option might print a whole valid document.

=head1 SEE ALSO

=over 4

=item * L<Syntax::Highlight::Perl::Improved>

=item * L<Term::ANSIColor>

lib/App/perlhl.pm  view on Meta::CPAN


=head2 new

This instantiates a new App::perlhl object. It takes a hashref
of options:

=over 4

=item * html

If true, the output will be an HTML fragment suitable for publishing as part
of a web page. B<NOTE:> In the future, this might output a whole valid document.

=back

The default is to output ANSI colour codes suitable for printing to any
reasonable shell or terminal (which probably means you have the one that'll
break -- well it works on mine, so neener neener).

=head2 run



( run in 0.714 second using v1.01-cache-2.11-cpan-b16cb0d3907 )