Jim Turner > Tk-TextHighlight > Tk::TextHighlight::Xresources

Download:
Tk-TextHighlight-1.0.4.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2   Source   Latest Release: Tk-TextHighlight-1.0.5

NAME ^

Tk::TextHighlight::Xresources - a Plugin for xresources files syntax highlighting

SYNOPSIS ^

 require Tk::TextHighlight::Xresources;
 my $sh = new Tk::TextHighlight::Xresources([
    ['Comment', -foreground => 'lightblue'],
    ['Path', -foreground => 'brown'],
    ['Command', -foreground => 'blue'],
    ['Separator', -foreground => 'darkblue'],
    ['Value', -foreground => 'orange'],
    ['False', -foreground => 'red'],
 ]);

DESCRIPTION ^

Tk::TextHighlight::Xresources is a plugin module that provides syntax highlighting for xresources files to a Tk::TextHighlight text widget.

It inherits Tk::TextHighlight::Template. See also there.

METHODS ^

highlight($string);

returns a list of string snippets and tags that can be inserted in a Tk::Text like widget instantly.

AUTHOR ^

Hans Jeuken (haje@toneel.demon.nl)

BUGS ^

Unknown

syntax highlighting: