• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

t/H06-May-2003-10880

ChangesH A D06-May-2003405 1410

MANIFESTH A D26-Apr-200388 98

Makefile.PLH A D06-May-2003627 2016

READMEH A D06-May-20031.3 KiB5635

ShowDiff.pmH A D06-May-20036.7 KiB20464

README

1String/ShowDiff version 0.03
2============================
3
4NAME
5
6String::ShowDiff - Perl extension to help visualize differences between strings
7
8SYNOPSIS
9
10  use String::ShowDiff qw/ansi_colored_diff/;
11  print ansi_colored_diff("abcehjlmnp", "bcdefjklmrst");
12
13  # or a bit more detailed:
14  my %options = ('u' => 'reset',
15                 '+' => 'on_green',
16		 '-' => 'on_red');
17  print ansi_colored_diff($oldstring, $newstring, \%options);
18
19  # of course, you can also set the what context shall be shown
20
21DESCRIPTION
22
23This module is a wrapper around the diff algorithm from the module
24Algorithm::Diff. It's job is to simplify a visualization of the differences of each strings.
25
26Compared to the many other Diff modules,
27the output is neither in diff-style nor are the recognised differences on line or word boundaries,
28they are at character level.
29
30INSTALLATION
31
32To install this module type the following:
33
34   perl Makefile.PL
35   make
36   make test
37   make install
38
39DEPENDENCIES
40
41This module requires these other modules and libraries:
42
43	Algorithm::Diff
44	Term::ANSIColor
45	Test::More
46
47COPYRIGHT AND LICENCE
48
49Put the correct copyright and licence information here.
50
51Copyright (C) 2003 Janek Schleicher
52
53This library is free software; you can redistribute it and/or modify
54it under the same terms as Perl itself.
55
56