Welcome to Vestris Inc.
Internet Interactive Solutions Company



Software Documentation

How do I enable search terms highlighting within results?

Alkaline search templates have two variables for <!--SET MAP--expression-->: $hlheader and $hltitle . Those represent the highlighted search terms. By default, highlighting puts the matched terms in bold. To change this behavior, use the <!--SET HIGHLIGHT-OPEN--text--> and <!--SET HIGHLIGHT-CLOSE--text--> expressions. For example, to highlight using the red color:
<!--SET MAP--
   <a href="$url" target="_new"><b>$title</b></a> $quality%
   <font size="1">$hlheader ... <br><font color="gray">$size bytes; modified: $modif</font>
   <br>url: <a href="$url" target="_new">$url</a>-->
<!--SET HIGHLIGHT-OPEN--<font color="red">-->
<!--SET HIGHLIGHT-CLOSE--</font>-->

The search terms highlighting is supported since Alkaline 1.7.