Fixed an issue that caused the text to not be highlighted upon opening a new text document.