IkiWiki::Plugin::syntax::Simple - Simple engine for syntax highlight
This documentation refers to IkiWiki::Plugin::syntax::Simple version 0.1
use IkiWiki::Plugin::syntax::Simple; my $engine = IkiWiki::Plugin::syntax::Simple->new(); my $htmlized_text = $engine->syntax_highlight( source => q(....), language => q(pod), linenumbers => 1, );
This module provides a simple syntax highlight engine for use with ikiwiki on installations where don't install third party modules.
The code return the source text received without special CSS marks inside with the exception of the PRE html paragraph.
PRE
Returns a hash with information about his capabilities.
This method returns always true because it don't make any real work with the source.
This module don't raise any exceptions.
This module don't need any special configuration nor environment.
There are no known bugs in this module. Please report problems to the author. Patches are welcome.
Víctor Moral <victor@taquiones.net>
Copyright (c) 2008 "Víctor Moral" <victor@taquiones.net>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 US
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Víctor'. Assuming UTF-8
To install IkiWiki::Plugin::syntax, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IkiWiki::Plugin::syntax
CPAN shell
perl -MCPAN -e shell install IkiWiki::Plugin::syntax
For more information on module installation, please visit the detailed CPAN module installation guide.