Algorithm::Diff::HTMLTable - Show differences of a file as a HTML table
version 0.05
my $builder = Algorithm::Diff::HTMLTable->new(
id => 'diff_table',
encoding => 'utf8',
);
$diff = $builder->diff( $sourcefile, $targetfile );
Algorithm::Diff::HTMLTable
shows the differences between two files
side-by-side as an HTML-formatted table. Removed lines are shown in the
colour red; added lines are shown in green. Line numbers of both files are
shown for added context, as well as the names of the files and the timestamp
of their most recent change.
my $builder = Algorithm::Diff::HTMLTable->new(
id => 'diff_table',
encoding => 'utf8',
);
Available options:
- id
- encoding
- eol
$diff = $builder->diff( $sourcefile, $targetfile );
The distribution is contained in a Git repository, so simply clone the repository
$ git clone git://github.com/reneeb/Algorithm-Diff-HTMLTable.git
and change into the newly-created directory.
$ cd Algorithm-Diff-HTMLTable
The project uses Dist::Zilla
to
build the distribution, hence this will need to be installed before
continuing:
$ cpanm Dist::Zilla
To install the required prequisite packages, run the following set of commands:
$ dzil authordeps --missing | cpanm
$ dzil listdeps --author --missing | cpanm
The distribution can be tested like so:
$ dzil test
To run the full set of tests (including author and release-process tests),
add the --author
and --release
options:
$ dzil test --author --release
Renee Baecker reneeb@cpan.org
This software is Copyright (c) 2021 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)