CodeText::None(3pm)
π NAME π
Tk::CodeText::None β bestie, it's a plugin that does literally no syntax highlighting at all. Zero. Nada. The void. π«Ά
β¨ SYNOPSIS β¨
require Tk::CodeText::None;
my $hl = new Tk::CodeText::None;
my @line = $hl->highlight($line);
π¦ DESCRIPTION π¦
Okay so Tk::CodeText::None is, and I'm being so fr right now, a dummy plugin module. Every single method you'd need to bring highlighting to a Tk::CodeText widget is sitting right there, present and accounted for, ready to do absolutely nothing. π
It only ships the methods that Tk::CodeText is actually going to call upon. That's it. That's the whole vibe.
πΈ METHODS πΈ
highlight($string)β returns an empty list. That's the entire personality. Returns. An. Empty. List. π
Not me dropping the real tea though: the descriptions of the rest of these methods are more of a "here's what they'd do if you were writing your own plugin" situation. These ones genuinely do as little as possible. Lowkey icon behaviour.
rules($txtwidget,\@rules)β sets and returns a reference to a list of tagnames and options. By default it's set to[ ]. Empty list, no thoughts, head empty. β¨stateCompare(\@state)β compares two lists:\@stateand the stack. Returns true if they match. Vibe check passed? βstateGetβ returns a list containing the entire stack. The whole stack, bestie, no gatekeeping. πstateSet(@list)β accepts@listas the current stack. New stack, who dis. π¦syntaxβ returnsNone.
π AUTHOR π
Hans Jeuken (haje@toneel.demon.nl) β tysm for this absolute minimalist masterpiece, we stan. π
π BUGS π
Unknown. (A rare and blessed state of affairs, honestly. No cap. π)
Heads up, bestie: this module does no highlighting whatsoever. If you were expecting colours, honey, the colours are not coming. π
And that's the whole page, fr fr β perl v5.40.1, dated 2025-05-04, and this little CodeText::None(3pm) said everything it came to say. Slay, stay hydrated, and may your plugins do exactly as little as you need them to. π§βπ
π¦ 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