1YAML::PP::Highlight(3)User Contributed Perl DocumentationYAML::PP::Highlight(3)
2
3
4
6 YAML::PP::Highlight - Syntax highlighting utilities
7
9 use YAML::PP::Highlight qw/ Dump /;
10
11 my $highlighted = Dump $data;
12
14 Dump
15
16 use YAML::PP::Highlight qw/ Dump /;
17
18 my $highlighted = Dump $data;
19 my $highlighted = Dump @docs;
20
21 It will dump the given data, and then parse it again to create tokens,
22 which are then highlighted with ansi colors.
23
24 The return value is ansi colored YAML.
25
26
27
28perl v5.32.0 2020-09-11 YAML::PP::Highlight(3)