HTML::TextToHTML 2.44 review
DownloadHTML::TextToHTML is a Perl module that can convert plain text file to HTML. SYNOPSIS From the command line: txt2html I
|
|
HTML::TextToHTML is a Perl module that can convert plain text file to HTML.
SYNOPSIS
From the command line:
txt2html I< arguments >
From Scripts:
use HTML::TextToHTML;
# create a new object
my $conv = new HTML::TextToHTML();
# convert a file
$conv->txt2html(infile=>[$text_file],
outfile=>$html_file,
title=>"Wonderful Things",
mail=>1,
]);
# reset arguments
$conv->args(infile=>[], mail=>0);
# convert a string
$newstring = $conv->process_chunk($mystring)
HTML::TextToHTML converts plain text files to HTML. The txt2html script uses this module to do the same from the command-line.
It supports headings, tables, lists, simple character markup, and hyperlinking, and is highly customizable. It recognizes some of the apparent structure of the source document (mostly whitespace and typographic layout), and attempts to mark that structure explicitly using HTML. The purpose for this tool is to provide an easier way of converting existing text documents to HTML format, giving something nicer than just whapping the text into a big PRE block.
Requirements:
Perl
HTML::TextToHTML 2.44 keywords