RECENT POSTS

P5-text-diff-html

May 26, 2018

Text::Diff::HTML - XHTML format for Text::Diff::Unified

This class subclasses TextDiffUnified, a formatting class provided by the TextDiff module, to add XHTML markup to the unified diff format. For details on the interface of the diff function, see the TextDiff documentation.

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

WWW http//search.cpan.org/dist/Text-Diff-HTML/