---
name: "Tk::CodeText::HTML"
section: "3pm"
platform: "linux"
package: "libtk-codetext-perl"
version: "0.3.4-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tk::CodeText::HTML"
---

# Tk::CodeText::HTML(3pm)

a Plugin for HTML syntax highlighting

## 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'],
 ]);
```

## 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'.

## AUTHOR

Hans Jeuken (haje@toneel.demon.nl)

## BUGS

Unknown
