Tk::TextHighlight::Template - a template for syntax highlighting plugins
Tk::TextHighlight::Template is a framework to assist authors of plugin modules. All methods to provide highlighting in a Tk::TextHighlight widget are there, Just no syntax definitions and callbacks. An instance of Tk::TextHighlight::Template should never be created, it's meant to be sub classed only.
sets and returns the instance variable 'callbacks'
highlights $text. It does so by selecting the proper callback from the commands hash and invoke it. It will do so untill $text has been reduced to an empty string.
Adds a list to the 'lists' hash.
sets and returns the instance variable 'lists'.
sets and returns the instance variable 'out'.
Error trapping method. Tries to escape the current mode. If that is not possible, it will parse the text with the default tag. Furthermore it complains about being called at all. Usefull for debugging when writing a new plugin.
sets and returns a reference to a list of tagnames and options. By default it is set to .
appends $string to the current snippet.
parses $text to the 'out' list, and assigns $tagname to it. If $tagname is not specified it will look for the tagname by calling stackTop. If $text is also not specified it will look for text by calling snippet.
sets and returns the instance variable 'stack', a reference to an array.
retrieves the element that is on top of the stack, decrements stacksize by 1.
puts $tagname on top of the stack, increments stacksize by 1
retrieves the element that is on top of the stack.
Compares two lists, \@state and the stack. returns true if they match.
Returns a list containing the entire stack.
Accepts @list as the current stack.
Parses the currently build snippet and tags it with 'Tagname'
returns true if $value is and element of 'Listname' in the 'lists' hash
Hans Jeuken (firstname.lastname@example.org)