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

See it in action on Butler.js