Skip to content

reneeb/Algorithm-Diff-HTMLTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Kwalitee status GitHub issues

NAME

Algorithm::Diff::HTMLTable - Show differences of a file as a HTML table

VERSION

version 0.05

SYNOPSIS

my $builder = Algorithm::Diff::HTMLTable->new(
   id       => 'diff_table',
   encoding => 'utf8',
);

$diff = $builder->diff( $sourcefile, $targetfile );

DESCRIPTION

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.

METHODS

new

my $builder = Algorithm::Diff::HTMLTable->new(
   id       => 'diff_table',
   encoding => 'utf8',
);

Available options:

  • id
  • encoding
  • eol

diff

$diff = $builder->diff( $sourcefile, $targetfile );

Development

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

AUTHOR

Renee Baecker reneeb@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2021 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

About

No description or website provided.

Topics

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages