Ejemplo n.º 1
0
    def _updateExtraSelections(self):
        """Highlight current line
        """
        cursorColumnIndex = self.textCursor().positionInBlock()

        bracketSelections = self._bracketHighlighter.extraSelections(self,
                                                                     self.textCursor().block(),
                                                                     cursorColumnIndex)

        allSelections = self._currentLineExtraSelections() + \
                        self._rectangularSelection.selections() + \
                        bracketSelections + \
                        self._userExtraSelections

        QPlainTextEdit.setExtraSelections(self, allSelections)
Ejemplo n.º 2
0
    def _updateExtraSelections(self):
        """Highlight current line
        """
        cursorColumnIndex = self.textCursor().positionInBlock()

        bracketSelections = self._bracketHighlighter.extraSelections(
            self,
            self.textCursor().block(), cursorColumnIndex)

        allSelections = self._currentLineExtraSelections() + \
                        self._rectangularSelection.selections() + \
                        bracketSelections + \
                        self._userExtraSelections

        QPlainTextEdit.setExtraSelections(self, allSelections)