Tk::CodeText::HTML - a Plugin for HTML syntax highlighting


NAME

Tk::CodeText::HTML - a Plugin for HTML syntax highlighting


SYNOPSIS

 require Tk::CodeText::HTML;
 my $sh = new Tk::CodeText::HTML($textwidget, [
   ['Text'],
   ['Tag', -foreground => 'brown'],
   ['Attr', -foreground => 'darkblue'],
   ['Comment', -foreground => 'lightblue'],
   ['Value', -foreground => 'orange'],
   ['String', -foreground => 'red'],
   ['SpChar', -foreground => 'magenta'],
 ]);


DESCRIPTION

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

It works quite fine, but can use refinement and optimization.

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

syntax
returns 'HTML'.


AUTHOR

Hans Jeuken (haje@toneel.demon.nl)


BUGS

Unknown

 Tk::CodeText::HTML - a Plugin for HTML syntax highlighting