Andrew Sterling Hanenkamp > Yukki-0.121790 > Yukki::Web::Plugin::SyntaxHighlight

Download:
Yukki-0.121790.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.121790   Source   Latest Release: Yukki-0.140290

NAME ^

Yukki::Web::Plugin::SyntaxHighlight - add syntax highlighting to wiki pages

VERSION ^

version 0.121790

SYNOPSIS ^

  <div>{{highlight:Perl:
  use v5.14;
  use Moose;

  has something => ( is => 'ro' );
  }}</div>

  <span>{{highlight:JavaScript:window.location.hash = '#foo'}}</span>

  {{highlight-div:Perl:
  use v5.14;
  use Moose;

  has something => ( is => 'ro' );
  }}

  {{highlight-span:JavaScript:window.location.hash = '#foo'}}

DESCRIPTION ^

Performs syntax highlighting of text. This is able to highlight all the file types listed here with teh Syntax::Highlight::Engine::Kate module:

ATTRIBUTES ^

format_helpers

Sets up the "highlight" helper.

METHODS ^

highlight_syntax

This is used to format the double-curly brace {{highlight:...}}. Do not use.

highlight_syntax_asis

This is used to format the double-curly brace {{highlight-asis:...}}. Do not use.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: