Added the ability to setHighlightSelectedWord, which determines if the currently selected word should be highlighted in all the document.