CodeText::HTML(3pm)

πŸ“¦
version 0.3.4 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, welcome to the glow-up of Tk::CodeText::HTML πŸ’– β€” it's a Plugin for HTML syntax highlighting, no cap. this is one of those User Contributed Perl Documentation pages, so you know it's coming straight from the people, not the suits πŸ‘‘


🌈 SYNOPSIS 🌈

here's the whole vibe, copy it exactly bestie:

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

look at those colours, it's giving rainbow πŸŒˆπŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so Tk::CodeText::HTML is a plugin module that serves up syntax highlighting for HTML to a Tk::CodeText text widget. that's literally the whole job. main character behaviour, honestly 🫢

it works quite fine, fr fr β€” but ngl it can use refinement and optimization. so like. it slays, but it could slay harder ✨

it inherits Tk::CodeText::None. see also there πŸ‘€ (go look, the lore is there)


πŸ’… METHODS πŸ’…

highlight($string);

returns a list of string snippets and tags that can be inserted in a Tk::Text like widget instantly. boom. no waiting, no loading screen, just vibes 🌸

syntax

returns 'HTML'. that's it, that's the answer. periodt πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Hans Jeuken (haje@toneel.demon.nl) β€” the icon, the legend, the moment ⭐


πŸ’€ BUGS πŸ’€

Unknown πŸ™ˆ

like... we don't know of any?? no bugs on the radar, bestie. if you find one that's a you-and-the-bug situation rn πŸ“


okay that's the whole page, you ate it πŸ’– and for the record, this page ships with perl v5.40.1 and is dated 2025-05-04 β€” so go forth, highlight your HTML, and stay iconic πŸŽ€πŸ§š

πŸ“¦ where this page comes from