1Pod::Text::Color(3) User Contributed Perl Documentation Pod::Text::Color(3)
2
3
4
6 Pod::Text::Color - Convert POD data to formatted color ASCII text
7
9 use Pod::Text::Color;
10 my $parser = Pod::Text::Color->new (sentence => 0, width => 78);
11
12 # Read POD from STDIN and write to STDOUT.
13 $parser->parse_from_filehandle;
14
15 # Read POD from file.pod and write to file.txt.
16 $parser->parse_from_file ('file.pod', 'file.txt');
17
19 Pod::Text::Color is a simple subclass of Pod::Text that highlights
20 output text using ANSI color escape sequences. Apart from the color,
21 it in all ways functions like Pod::Text. See Pod::Text for details and
22 available options.
23
24 Term::ANSIColor is used to get colors and therefore must be installed
25 to use this module.
26
28 This is just a basic proof of concept. It should be seriously expanded
29 to support configurable coloration via options passed to the
30 constructor, and pod2text should be taught about those.
31
33 Russ Allbery <rra@cpan.org>.
34
36 Copyright 1999, 2001, 2004, 2006, 2008, 2009, 2018-2019 Russ Allbery
37 <rra@cpan.org>
38
39 This program is free software; you may redistribute it and/or modify it
40 under the same terms as Perl itself.
41
43 Pod::Text, Pod::Simple
44
45 The current version of this module is always available from its web
46 site at <https://www.eyrie.org/~eagle/software/podlators/>. It is also
47 part of the Perl core distribution as of 5.6.0.
48
49
50
51perl v5.34.0 2021-07-23 Pod::Text::Color(3)