There's a standard CM addon that highlights the matches. It's in `addons/search/match-highlighter.js`.