prismjs

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

highlight-words

Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.