KinoSe...rmatter(3pm)
π NAME π
KinoSearch1::Highlight::SimpleHTMLFormatter β it wraps your highlight bits in tags, bestie. That's the whole job. That's the vibe.
β¨ SYNOPSIS β¨
my $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new(
pre_tag => '<i>',
post_tag => '</i>',
);
# returns "<i>foo</i>"
my $highlighted = $formatter->highlight("foo");
π¦ DESCRIPTION π¦
Okay so this is a subclass of KinoSearch1::Highlight::Formatter, and what it does is highlight text by surrounding it with HTML "strong" tags. Like, it puts stuff before and after the good part. Simple. Iconic. No notes. π
πΈ METHODS πΈ
π new
Constructor, babe. Takes hash-style params. She's low maintenance, she just wants her tags.
my $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new(
pre_tag => '*', # default: '<strong>'
post_tag => '*', # default: '</strong>'
);
pre_tagβ a string that gets inserted immediately prior to the highlightable text, usually to accentuate it because we love a lil drama. If you're not feeling the highlighting at all, set bothpre_tagandpost_tagto''. Not me being anti-highlight but go off. πpost_tagβ a string that gets inserted immediately after the highlightable text. The closing act. The little bow on top. π
π COPYRIGHT π
Copyright 2006-2010 Marvin Humphrey
π LICENSE, DISCLAIMER, BUGS, etc. π
See KinoSearch1 version 1.01.
And that's the page, bestie π«Ά β this lil doc came from the User Contributed Perl Documentation, written by perl v5.42.3 on 2026-08-20. Slay. Go highlight something. β¨ππ
π¦ where this page comes from
- ubuntu stonking: libkinosearch1-perl 1.01-6build2 Β· 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