POD::TEXT::COLOR(3perl)
π¨ NAME π¨
Pod::Text::Color β bestie, this turns your POD docs into pretty color ASCII text β¨
π SYNOPSIS π
use Pod::Text::Color;
my $parser = Pod::Text::Color->new (sentence => 0, width => 78);
# Read POD from STDIN and write to STDOUT.
$parser->parse_from_filehandle;
# Read POD from file.pod and write to file.txt.
$parser->parse_from_file ('file.pod', 'file.txt');
π DESCRIPTION π
Okay so Pod::Text::Color is a simple subclass of Pod::Text, and its whole thing β its entire ~moment~ β is that it highlights output text using ANSI color escape sequences. π
And other than the color? It functions in all ways exactly like Pod::Text. Like, same brain, different outfit. So if you want the details and the available options, go read Pod::Text.
Term::ANSIColor is what gets used to get colors, and therefore it must be installed to use this module. No Term::ANSIColor, no vibe. π
π°οΈ COMPATIBILITY π°οΈ
Pod::Text::Color 0.05 (based on Pod::Parser) was the first version of this module included with Perl, in Perl 5.6.0. queen's origin story fr π
The current API based on Pod::Simple was added in Pod::Text::Color 2.00. And Pod::Text::Color 2.01 was included in Perl 5.9.3 β the first version of Perl to incorporate those changes.
Several problems with wrapping and line length were fixed as recently as Pod::Text::Color 6.0.0. (Not me being late to the party, it's called β¨growthβ¨.)
This module inherits its API and most behavior from Pod::Text, so the details in "COMPATIBILITY" in Pod::Text also apply. Pod::Text and Pod::Text::Color have had the same module version since 4.00, included in Perl 5.23.7. (They unfortunately diverge in confusing ways prior to that. π it was a messy era, we don't talk about it.)
β οΈ CAVEATS β οΈ
Line wrapping is done only at ASCII spaces and tabs, rather than using a correct Unicode-aware line wrapping algorithm. π
So yeah β it's not out here doing the fancy Unicode-aware thing. Just regular old spaces and tabs. Know that going in.
βοΈ AUTHOR βοΈ
Russ Allbery <rra@cpan.org>.
Β©οΈ COPYRIGHT AND LICENSE Β©οΈ
Copyright 1999, 2001, 2004, 2006, 2008, 2009, 2018-2019, 2022, 2024 Russ Allbery <rra@cpan.org>
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
Pod::TextPod::Simple
The current version of this module is always available from its web site at <https://www.eyrie.org/~eagle/software/podlators/>. It is also part of the Perl core distribution as of 5.6.0. π«Ά
and that's the whole page, bestie!! this was perl v5.44.0, dated 2026-10-17, and it's the Pod::Text::Color(3perl) manual π go forth and colorize your docs, you absolute icon π
β¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms