XHTML format for Text::Diff::Unified
Perl CSS
Latest commit c324905 Jun 25, 2011 @theory Increment to v0.08.


Text/Diff/HTML version 0.08

This class subclasses Text::Diff::Unified, a formatting class provided by the Text-Diff distribution, to add XHTML markup to the unified diff format.

In the XHTML formatted by this module, the contents of the diff are wrapped in a <div> element, as is each hunk of the diff. Within each hunk, all content is properly HTML encoded and the various sections of the diff are marked up with the appropriate XHTML elements.


To install this module, type the following:

perl Build.PL
./Build test
./Build install

Or, if you don't have Module::Build installed, type the following:

perl Makefile.PL
make test
make install


Text::WordDiff requires the following modules:

  • Text::Diff 0.11
  • HTML::Entities

Copyright and Licence

Copyright (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.