1Text::WordDiff::ANSIColUosre(r3)Contributed Perl DocumenTteaxtti:o:nWordDiff::ANSIColor(3)
2
3
4
6 Text::WordDiff::ANSIColor - ANSI colored formatting for Text::WordDiff
7
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
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 Term::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
41 Text::WordDiff
42 Text::WordDiff::HTML
43
45 This module is stored in an open repository at the following address:
46
47 https://svn.kineticode.com/Text-WordDiff/trunk/
48 <https://svn.kineticode.com/Text-WordDiff/trunk/>
49
50 Patches against Text::WordDiff are welcome. Please send bug reports to
51 <bug-text-worddiff@rt.cpan.org>.
52
54 David Wheeler <david@kineticode.com>
55
57 Copyright (c) 2005-2008 David Wheeler. Some Rights Reserved.
58
59 This module is free software; you can redistribute it and/or modify it
60 under the same terms as Perl itself.
61
62
63
64perl v5.12.0 2010-05-07 Text::WordDiff::ANSIColor(3)