logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Hans Jeuken (haje@toneel.demon.nl)

Bugs

       Unknown

perl v5.40.1                                       2025-05-04                          CodeText::Xresources(3pm)

Description

       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.

Name

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

Synopsis

        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'],
        ]);

See Also