Use QTextEdit::setExtraSelections() for highlighting
Hide window if window manager won't minimize it