Customizing the appearance of items in an option list can be easily achieved by using CSS:
<select>
<option>Option 1</option>
<option style="color: #F00; font-weight: bold; padding-left:2em;">Option 2</option>
<option>Option 3</option>
<option style="color: #00F;">Option 4</option>
<option>Option 5</option>
</select>
However, highlighting specific parts of a string within an item poses a challenge. For instance, how could one highlight just the substring "ion 5" in the 5th item of the list? One suggestion is to utilize a background image and adjust its position accordingly. Yet, this approach may prove complex. Does anyone have a clever solution for achieving this task? The target browser is the latest version of Firefox, and both the HTML and styling can be dynamically generated on the server side.