Data-Printer-Theme-Zellner
view release on metacpan or search on metacpan
lib/Data/Printer/Theme/Zellner.pm view on Meta::CPAN
package Data::Printer::Theme::Zellner;
use warnings;
use strict;
our $VERSION = "0.03";
sub colors {
return {
array => '#ff0000', # array index numbers
number => '#870000', # numbers
string => '#ff00ff', # strings
class => '#000087', # class names
method => '#a52a2a', # method names
undef => '#a9a9a9', # the 'undef' value
hash => '#0000ff', # hash keys
regex => '#000087', # regular expressions
code => '#870087', # code references
glob => '#870087', # globs (usually file handles)
vstring => '#ff00ff', # version strings (v5.30.1, etc)
lvalue => '#000000', # lvalue label
format => '#000000', # format type
repeated => '#000000', # references to seen values
caller_info => '#878787', # details on what's being printed
weak => '#000000', # weak references flag
tainted => '#870000', # tainted flag
unicode => '#000000', # utf8 flag
escaped => '#ff00ff', # escaped characters (\t, \n, etc)
brackets => '#000000', # (), {}, []
separator => '#000000', # the "," between hash pairs, array elements, etc
quotes => '#000000', # q(")
unknown => '#878787', # any (potential) data type unknown to Data::Printer
};
}
1;
=pod
=head1 NAME
Data::Printer::Theme::Zellner - A L<Data::Printer> theme based on vims Zellner colors.
=head1 SYNOPSIS
$ echo "theme = Zellner" >> ~/.dataprinter
or
use DDP theme => 'Zellner';
or
$ perl -MDDP=theme,Zellner -wE 'my $x = "string"; p $x'
=head1 DESCRIPTION
This theme for L<Data::Printer> is for people who use a I<light> background in
their terminal. It is based on L<vim(1)>s B<Zellner> colorscheme.
=head2 colors
array => '#ff0000', # array index numbers
number => '#870000', # numbers
string => '#ff00ff', # strings
class => '#000087', # class names
method => '#a52a2a', # method names
undef => '#a9a9a9', # the 'undef' value
hash => '#0000ff', # hash keys
regex => '#000087', # regular expressions
code => '#870087', # code references
glob => '#870087', # globs (usually file handles)
vstring => '#ff00ff', # version strings (v5.30.1, etc)
lvalue => '#000000', # lvalue label
format => '#000000', # format type
repeated => '#000000', # references to seen values
caller_info => '#878787', # details on what's being printed
weak => '#000000', # weak references flag
tainted => '#870000', # tainted flag
unicode => '#000000', # utf8 flag
escaped => '#ff00ff', # escaped characters (\t, \n, etc)
brackets => '#000000', # (), {}, []
separator => '#000000', # the "," between hash pairs, array elements, etc
quotes => '#000000', # q(")
unknown => '#878787', # any (potential) data type unknown to Data::Printer
=head1 COPYRIGHT
E<copy> MMXXIII - Abe Timmerman <abeltje@cpan.org>
=head1 CONTRIBUTIONS
=over
=item B<Johan Vromans>
=back
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
=cut
( run in 1.163 second using v1.01-cache-2.11-cpan-39bf76dae61 )