File Coverage

blib/lib/Data/Printer/Theme/Zellner.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Data::Printer::Theme::Zellner;
2 1     1   1460 use warnings;
  1         2  
  1         43  
3 1     1   7 use strict;
  1         1  
  1         130  
4              
5             our $VERSION = "0.03";
6              
7             sub colors {
8             return {
9 5     5 1 20509 array => '#ff0000', # array index numbers
10             number => '#870000', # numbers
11             string => '#ff00ff', # strings
12             class => '#000087', # class names
13             method => '#a52a2a', # method names
14             undef => '#a9a9a9', # the 'undef' value
15             hash => '#0000ff', # hash keys
16             regex => '#000087', # regular expressions
17             code => '#870087', # code references
18             glob => '#870087', # globs (usually file handles)
19             vstring => '#ff00ff', # version strings (v5.30.1, etc)
20             lvalue => '#000000', # lvalue label
21             format => '#000000', # format type
22             repeated => '#000000', # references to seen values
23             caller_info => '#878787', # details on what's being printed
24             weak => '#000000', # weak references flag
25             tainted => '#870000', # tainted flag
26             unicode => '#000000', # utf8 flag
27             escaped => '#ff00ff', # escaped characters (\t, \n, etc)
28             brackets => '#000000', # (), {}, []
29             separator => '#000000', # the "," between hash pairs, array elements, etc
30             quotes => '#000000', # q(")
31             unknown => '#878787', # any (potential) data type unknown to Data::Printer
32             };
33             }
34              
35             1;
36              
37             =pod
38              
39             =head1 NAME
40              
41             Data::Printer::Theme::Zellner - A L theme based on vims Zellner colors.
42              
43             =head1 SYNOPSIS
44              
45             $ echo "theme = Zellner" >> ~/.dataprinter
46              
47             or
48              
49             use DDP theme => 'Zellner';
50              
51             or
52              
53             $ perl -MDDP=theme,Zellner -wE 'my $x = "string"; p $x'
54              
55             =head1 DESCRIPTION
56              
57             This theme for L is for people who use a I background in
58             their terminal. It is based on Ls B colorscheme.
59              
60             =head2 colors
61              
62             array => '#ff0000', # array index numbers
63             number => '#870000', # numbers
64             string => '#ff00ff', # strings
65             class => '#000087', # class names
66             method => '#a52a2a', # method names
67             undef => '#a9a9a9', # the 'undef' value
68             hash => '#0000ff', # hash keys
69             regex => '#000087', # regular expressions
70             code => '#870087', # code references
71             glob => '#870087', # globs (usually file handles)
72             vstring => '#ff00ff', # version strings (v5.30.1, etc)
73             lvalue => '#000000', # lvalue label
74             format => '#000000', # format type
75             repeated => '#000000', # references to seen values
76             caller_info => '#878787', # details on what's being printed
77             weak => '#000000', # weak references flag
78             tainted => '#870000', # tainted flag
79             unicode => '#000000', # utf8 flag
80             escaped => '#ff00ff', # escaped characters (\t, \n, etc)
81             brackets => '#000000', # (), {}, []
82             separator => '#000000', # the "," between hash pairs, array elements, etc
83             quotes => '#000000', # q(")
84             unknown => '#878787', # any (potential) data type unknown to Data::Printer
85              
86             =head1 COPYRIGHT
87              
88             E MMXXIII - Abe Timmerman
89              
90             =head1 CONTRIBUTIONS
91              
92             =over
93              
94             =item B
95              
96             =back
97              
98             =head1 LICENSE
99              
100             This library is free software; you can redistribute it and/or modify
101             it under the same terms as Perl itself.
102              
103             This program is distributed in the hope that it will be useful,
104             but WITHOUT ANY WARRANTY; without even the implied warranty of
105             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
106              
107             =cut