Text Highlighter

Javascript class to highlight search results on a textarea without interfering with its operation

Enter a search term below to see this class in action. Then use the resize handler to change the box's dimensions and see the markings ajust in real time. You can click the button or hit ENTER to start a search. Click clear to remove any highlighted items.