CodeText::HTML(3pm)
β¨ 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
- debian trixie: libtk-codetext-perl 0.3.4-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtk-codetext-perl 0.3.4-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtk-codetext-perl 0.3.4-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms