Tk::CodeText::HTML(3pm)

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.

  1. 12
  2. 13

Author

Hans Jeuken ([email protected])

Bugs

Unknown

From libtk-codetext-perl 0.3.4-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.