Highlight Search Results with this jQuery Plugin

You may have a need to hightlight keywords in a string. This plugin takes your string and your list of keywords and outputs a new string with all of the keywords highlighted.

Introducing SimpleHighlight.js

There are other jQuery plugins that do this very same thing except they require an object and only highlight as you type. So they aren’t really useful for highlighting keywords in search results.

This plugin is the simplest version of those plugins. It can be used both as a keystroke highlighter and a search results highlighter.

The SimpleHighlight.js Demo shows how the plugin can be used for keystroke highlighting. You can enter your own text and keywords and see the output in real-time.

Head on over to GitHub and grab yourself a simple text highlighter for search results today!