نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > Text-Editor-Vip > Text::Editor::Vip::Color::Color

Download:
Text-Editor-Vip-0.08.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

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, 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:

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).

syntax highlighting: