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::None - a Plugin for No syntax highlighting

Author

       Hans Jeuken (haje@toneel.demon.nl)

Bugs

       Unknown.

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

Description

       Tk::CodeText::None is some kind of a dummy plugin module. All methods to provide highlighting in a
       Tk::CodeText widget are there, ready to do nothing.

       It only provides those methods, that Tk::CodeText is going to call upon.

Methods

highlight($string);
           returns an empty list.

       The  description  of  the  remaining methods is more a description of what they are supposed to do if you
       write your own plugin. These methods actually do as little as possible.

       rules($txtwidget,\@rules)
           sets and returns a reference to a list of tagnames and options.  By default it is set to [ ].

       stateCompare(\@state);
           Compares two lists, \@state and the stack. returns true if they match.

       stateGet
           Returns a list containing the entire stack.

       stateSet(@list)
           Accepts @list as the current stack.

       syntax
           returns None

Name

       Tk::CodeText::None - a Plugin for No syntax highlighting

Synopsis

        require Tk::CodeText::None;
        my $hl = new Tk::CodeText::None;
        my @line = $hl->highlight($line);

See Also