code: def extraSelections(self):
          
          if not isinstance(self._mode, Normal):
              return []
  
          selection = QTextEdit.ExtraSelection()
          selection.format.setBackground(QColor('#ffcc22'))
          selection.format.setForeground(QColor('#000000'))
          selection.cursor = self._qpart.textCursor()
          selection.cursor.movePosition(QTextCursor.NextCharacter, QTextCursor.KeepAnchor)
  
          return [selection]
docs: In normal mode - QTextEdit.ExtraSelection which highlightes the cursor