MojoMojo::Formatter::SyntaxHighlight - syntax highlighting for code blocks
This formatter performs syntax highlighting on code blocks.
The syntax highlight formatter is based on <pre> tags and therefore it's elementary to get those unchanged. So we need to run this plugin before MojoMojo::Formatter::Wiki which actually changes those tags.
This formatter uses Syntax::Highlight::Engine::Kate to highlight code syntax inside of <pre lang="my_lang"> </pre>tags. To let the formatter know which language has to be highlighted, do:
<pre lang="Perl"> say "Hola Mundo"; </pre>
See "PLUGINS" in Syntax::Highlight::Engine::Kate for a list of supported languages.
MojoMojo, Module::Pluggable::Ordered and Syntax::Highlight::Engine::Kate.
Johannes Plunien <plu@cpan.org>
This module is licensed under the same terms as Perl itself.
To install MojoMojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoMojo
CPAN shell
perl -MCPAN -e shell install MojoMojo
For more information on module installation, please visit the detailed CPAN module installation guide.