code: def isCode(self, blockOrBlockNumber, column):
          
          if isinstance(blockOrBlockNumber, QTextBlock):
              block = blockOrBlockNumber
          else:
              block = self.document().findBlockByNumber(blockOrBlockNumber)
  
          return self._highlighter is None or \
                 self._highlighter.isCode(block, column)
docs: Check if text at given position is a code.
  
          If language is not known, or text is not parsed yet, ``True`` is returned