Tk::CodeText::HTML - a Plugin for HTML syntax highlighting
Contents
Bugs
Unknown
perl v5.40.1 2025-05-04 CodeText::HTML(3pm)
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'.
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'],
]);
