Highlighter.js is a tiny javascript library, to allow you to easily navigate, select and highlight the DOM elements.
Website Demo