docs: def _append_message(self, text, char_format):
          """
          Parses text and executes parsed operations.
          """
          self._cursor = self._text_edit.textCursor()
          operations = self._parser.parse_text(FormattedText(text, char_format))
          for i, operation in enumerate(operations):
              try:
                  func = getattr(self, '_%s' % operation.command)
              except AttributeError:
                  print('command not implemented: %r - %r' % (
                      operation.command, operation.data))
              else:
                  try:
                      func(operation.data)
                  except Exception:
                      _logger().exception('exception while running %r', operation)
                      # uncomment next line for debugging commands
                      self._text_edit.repaint()