KinoSe...rmatter(3pm)

✨ NAME ✨

KinoSearch1::Highlight::Formatter β€” the little glow-up artist that formats highlighted bits inside your excerpts πŸ’–


🌸 SYNOPSIS 🌸

# abstract base class

Yes bestie, that's the whole synopsis. It's abstract β€” you don't instantiate this one directly, you let its subclasses do the actual serving. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so Formatter objects have literally one job and they are obsessed with it: they highlight pieces of text inside an excerpt. That's it. That's the whole personality. πŸ’…

And the text they're highlighting? Could be a single term β€” one lil word β€” or it could be a whole phrase. Either way, the Formatter is on it. ✨


πŸŽ€ METHODS πŸŽ€

πŸ’œ highlight

my $highlighted = $formatter->highlight($text);

This is the moment. This is the main character energy. 🫢 You hand it $text, and it hands you back the highlighted version β€” like surrounding the text with asterisks, or <strong> HTML tags, or whatever flavor of sparkle you're going for. No cap, that's the vibe. 🌈


Copyright 2006-2010 Marvin Humphrey


πŸ“œ LICENSE, DISCLAIMER, BUGS, etc. πŸ“œ

See KinoSearch1 version 1.01.

Real talk: the legal tea, the disclaimers, the bug notes β€” all of it lives over in the KinoSearch1 page at version 1.01. Go sip there. πŸ“

And that's the whole page, bestie!! This one came from the Perl docs, perl v5.42.3, dated 2026-08-20 β€” so if you're reading this in the future, hey, hi, hope your excerpts are glowing. πŸ’« πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from