Konstrukt::Plugin::wiki::markup::code - Block plugin to handle code/preformatted sections
my $code = use_plugin 'wiki::markup::code'; my $rv = $code->process($block);
This one will match if the first character of the first line of the block is a whitespace or a tab.
The block will then be enclosed by <code> and </code>. All child nodes will be tagged as finished to prevent further wiki parsing on them.
although only the first line is indented the whole block will be marked as code.
Installs the templates.
Parameters:
none
This method will do the work.
Parameters:
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.