If you are thinking now how this Text or Word Highlighter actually is, then see this preview given below. - GitHub - julmot/mark.js: JavaScript … Format a word (make it red) with a Chrome Extension, How to change color of searched text when a value is entered. Loop through the HTML document, find all text nodes, get the textContent, get the position of the highlight-text with indexOf (with an optional toLowerCase if it … This will be not working with the keyboard shortcut, I will work when you type text on input. Found inside – Page 198In this section, you use the $location service to enable users to highlight bits of text from the book preview and track what ...