|
NameText::WordDiff::HTML - XHTML formatting for Text::WordDiffSynopsisuse Text::WordDiff; my $diff = word_diff 'file1.txt', 'file2.txt'; { STYLE => 'HTML' }; my $diff = word_diff \$string1, \$string2, { STYLE => 'HTML' }; my $diff = word_diff \*FH1, \*FH2, { STYLE => 'HTML' }; my $diff = word_diff \&reader1, \&reader2, { STYLE => 'HTML' }; my $diff = word_diff \@records1, \@records2, { STYLE => 'HTML' }; # May also mix input types: my $diff = word_diff \@records1, 'file_B.txt', { STYLE => 'HTML' }; DescriptionThis class subclasses Text::WordDiff::Base to provide a XHTML formatting for Text::WordDiff. See Term::WordDiff for usage details. This class should never be used directly.Text::WordDiff::HTML formats word diffs for viewing in a Web browser. The diff content is highlighted as follows:
You may do whatever you like with these elements and classes; I highly recommend that you style them using CSS. You'll find an example CSS file in the eg directory in the Text-WordDiff distribution. See Also
SupportThis module is stored in an open repository at the following address:<https://svn.kineticode.com/Text-WordDiff/trunk/> Patches against Text::WordDiff are welcome. Please send bug reports to <bug-text-worddiff@rt.cpan.org>. AuthorDavid Wheeler <david@kineticode.com>Currently maintained by the developers of The Perl Shop <tps@cpan.org>. Copyright and LicenseCopyright (c) 2005-2011 David E. Wheeler. Some Rights Reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |