The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

tests

do not use print for output but some Vip error or login func

NAME

Text::Editor::Vip::Color::Color - Manipulates color files

DESCRIPTION

Loads color definition files.

MEMBER FUNCTIONS

GetKeywordColors

This function evaluate, possibly multiple, perl files containing one of the following:

  • color and color class definitions

  • color, color class and keywords color definitions

Color, color classes and keyword colors are defined as hash references.

 my $colors = 
        {
        # color name    color   
          default_fg => 'black' # forward declaration
        , default_bg => 'white'
        , margin     => [235, 235, 235] # RGB components
        , dark_red   => [110, 0, 0]
        } ;
 
 my $color_class =
        {
        # colors must be defined (possibly in another file)
        
        # class           color tuple 
          default      => ['default_bg','default_fg'] 
        , selection    => ['dark_blue', 'white']
        , DynaLoader   => ['red', 'yellow']
        } ;
 
 my $keyword_color_class =
        {
        # keyword      color class 
          DynaLoader =>'DynaLoader',
        , carp       =>'Carp',
        } ;
        
 # return the color data to Vip
 return ($color, $color_class, $keyword_color_class) ;
 

Argument

GetKeywordColors uses named arguments:

  • COLORS, a list of files to load (color, color class)

  • COLORS_AND_KEYWORDS, a list of files to load (color, color class, keywords)

  • KEYWORDS, a list of files to load (keywords)

  • USE_X_COLORS, uses Graphics::ColorNames to define standard names.Spaces are replaced with '_'.

  • MAPPING, transform color classes (only PANGO supported)

AUTHOR

  Nadim iibn Hamouda El Khemir
  <nadim@khemir.net>

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

perl(1).

1 POD Error

The following errors were encountered while parsing the POD:

Around line 18:

Unknown directive: =TODO