MojoMojo::Formatter::SyntaxHighlight(3pm)

MojoMojo::Formatter::SyntaxHighlight3pm

Syntax highlighting for code blocks

module_loaded

Return true if the module is loaded.

Overview

This formatter performs syntax highlighting on code blocks.

Methods

format_content_order

The syntax highlight formatter is based on "<pre>" tags entered by the user, so it must run before other formatters that produce "<pre>" tags. The earliest such formatter is the main formatter.

format_content

This formatter uses Syntax::Highlight::Engine::Kate to syntax highlight code inside of "<pre lang="language"> ... </pre>" tags:

 <pre lang="Perl">
   say "Hello world!";
 </pre>

See "PLUGINS" in Syntax::Highlight::Engine::Kate for a list of supported languages.

Releases

5 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10

Authors

Johannes Plunien <[email protected]>

License

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

From libmojomojo-perl 1.12+dfsg-1 in Debian 10 (Buster). Parsed by carta from the page's man source.