'Implement highlight specific Diff/Patch files.'

def highlight_block(self, text):

    text = to_text_string(text)
    if text.startswith('+++'):
        self.setFormat(0, len(text), self.formats['keyword'])
    elif text.startswith('---'):
        self.setFormat(0, len(text), self.formats['keyword'])
    elif text.startswith('+'):
        self.setFormat(0, len(text), self.formats['string'])
    elif text.startswith('-'):
        self.setFormat(0, len(text), self.formats['number'])
    elif text.startswith('@'):
        self.setFormat(0, len(text), self.formats['builtin'])
    self.highlight_spaces(text)
