docs: def on_install(self, editor):
          """
          Extends :meth:`pyqode.core.api.Mode.on_install` method to set the
          editor instance as the parent widget.
  
          .. warning:: Don't forget to call **super** if you override this
              method!
  
          :param editor: editor instance
          :type editor: pyqode.core.api.CodeEdit
          """
          Mode.on_install(self, editor)
          self.setParent(editor)
          self.setPalette(QtWidgets.QApplication.instance().palette())
          self.setFont(QtWidgets.QApplication.instance().font())
          self.editor.panels.refresh()
          self._background_brush = QtGui.QBrush(QtGui.QColor(
              self.palette().window().color()))
          self._foreground_pen = QtGui.QPen(QtGui.QColor(
              self.palette().windowText().color()))