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 both pre_tag and post_tag to ''. 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 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