Tk::TextHighlight::HTML - a Plugin for HTML syntax highlighting
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'], ]);
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.
returns a list of string snippets and tags that can be inserted in a Tk::Text like widget instantly.
returns 'HTML'.
Hans Jeuken (haje@toneel.demon.nl)
Unknown
To install Tk::TextHighlight, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::TextHighlight
CPAN shell
perl -MCPAN -e shell install Tk::TextHighlight
For more information on module installation, please visit the detailed CPAN module installation guide.