Jim Turner > Tk-TextHighlight-1.0.5 > Tk::TextHighlight::HTML

Download:
Tk-TextHighlight-1.0.5.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

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

SYNOPSIS ^

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

DESCRIPTION ^

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

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

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

syntax highlighting: