Tk::CodeText::Xresources(3pm)

Tk::CodeText::Xresources3pm

A plugin for xresources files syntax highlighting

Usage

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

Overview

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

It inherits Tk::CodeText::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.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Hans Jeuken ([email protected])

Bugs

Unknown

From libtk-codetext-perl 0.3.4-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.