Tk::CodeText::HTML3pm
A plugin for html syntax highlighting
Usage
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'],]);
Overview
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'.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.