code: def clearSyntax(self):
          
          if self._highlighter is not None:
              self._highlighter.terminate()
              self._highlighter = None
              self.languageChanged.emit(None)
docs: Clear syntax. Disables syntax highlighting
  
          This method might take long time, if document is big. Don't call it if you don't have to (i.e. in destructor)