Text::Multi

Text::Multi is a Perl module to transform a file containing a mixture of markup types into HTML.
Download

Text::Multi Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jason Kohles
  • Publisher web site:
  • http://search.cpan.org/~jasonk/

Text::Multi Tags


Text::Multi Description

Text::Multi is a Perl module to transform a file containing a mixture of markup types into HTML. Text::Multi is a Perl module to transform a file containing a mixture of markup types into HTML.SYNOPSIS use Text::Multi; my $parser = Text::Multi->new( default_type => 'Markdown', detailed => 1, ); print $multi->render;This module formats text files that contain a mixture of different types of text markup. This allows, for example, for you to write a blog entry in markdown, with sample code being formatted by an appropriate syntax-coloring system.Text::Multi itself only uses a single type of tag which indicates a change in processor type. It usually looks like this: {{{ BlockType }}}or like this: {{{ BlockType param=option }}}The first word is the type of block, and indicates the subclass of Text::Multi::Block that should be used to process the following section of text. Any parameters following the blocktype are optional, and the options available depend on the processing module. There are some options common to all block processors, so check the documentation for Text::Multi::Block as well as for the individual subclasses.You can also use a blank tag, like so: {{{ }}}Any amount of whitespace in a blank tag is ignored. A blank tag indicates that the previous block is ending. While processing a document, new tags are kept on a stack so that as a block ends the previous block can continue.An example would probably clarify that last paragraph. {{{ Markdown }}} Markdown text, describing the code that follows. {{{ Code lang=perl }}} #!/usr/bin/perl -w use strict; use warnings; # This is some dumb perl code print < title >HTML< /title > < /head > < body > This will be syntax-colored as HTML. < /body > < /htm > {{{ }}} END # This is the end of the dumb perl code {{{ }}} This is more Markdown. Requirements: · Perl


Text::Multi Related Software