1Text::WordDiff::ANSIColUosre(r3)Contributed Perl DocumenTteaxtti:o:nWordDiff::ANSIColor(3)
2
3
4

Name

6       Text::WordDiff::ANSIColor - ANSI colored formatting for Text::WordDiff
7

Synopsis

9           use Text::WordDiff;
10
11           my $diff = word_diff 'file1.txt', 'file2.txt';
12           my $diff = word_diff \$string1,   \$string2,   { STYLE => 'ANSIColor' };
13           my $diff = word_diff \*FH1,       \*FH2;       \%options;
14           my $diff = word_diff \&reader1,   \&reader2;
15           my $diff = word_diff \@records1,  \@records2;
16
17           # May also mix input types:
18           my $diff = word_diff \@records1,  'file_B.txt';
19

Description

21       This class subclasses Text::WordDiff::Base to provide a formatting
22       class for Text::WordDiff that uses ANSI-standard terminal escape
23       sequences to highlight deleted and inserted text. This formatting class
24       is the default class used by Text::WordDiff; see its documentation for
25       details on its interface. This class should never be used directly.
26
27       Text::WordDiff::ANSIColor formats word diffs for viewing in an ANSI-
28       standard terminal session. The diff content is highlighted as follows:
29
30       Deletes
31           Deleted words will display in bold-faced red. The ANSI standard for
32           strikethrough is also used, but since it is not supported by most
33           terminals, likely will not show up.
34
35       Inserts
36           Inserted words will display in bold-faced, underlined green.
37
38       All other content is simply returned.
39

See Also

41       Text::WordDiff
42       Text::WordDiff::HTML
43

Support

45       This module is stored in an open repository at the following address:
46
47       <https://svn.kineticode.com/Text-WordDiff/trunk/>
48
49       Patches against Text::WordDiff are welcome. Please send bug reports to
50       <bug-text-worddiff@rt.cpan.org>.
51

Author

53       David Wheeler <david@kineticode.com>
54
55       Currently maintained by the developers of The Perl Shop <tps@cpan.org>.
56
58       Copyright (c) 2005-2011 David E. Wheeler. Some Rights Reserved.
59
60       This module is free software; you can redistribute it and/or modify it
61       under the same terms as Perl itself.
62
63
64
65perl v5.28.1                      2019-02-02      Text::WordDiff::ANSIColor(3)
Impressum