Highlights text as a syntax warning.

        :param color: Underline color
        :type color: QtGui.QColor

def set_as_warning(self, color=QColor("orange")):
        """
        Highlights text as a syntax warning.

        :param color: Underline color
        :type color: QtGui.QColor
        """
        self.format.setUnderlineStyle(
            QTextCharFormat.WaveUnderline)
        self.format.setUnderlineColor(color)