'Extend base class method: Add Colorizing
Color the offending position instead of printing it and pointing at it
with a caret.'

def showsyntaxerror(self, filename=None):

    text = self.tkconsole.text
    stuff = self.unpackerror()
    if stuff:
        (msg, lineno, offset, line) = stuff
        if (lineno == 1):
            pos = ('iomark    +    %d    chars' % (offset - 1))
        else:
            pos = ('iomark    linestart    +    %d    lines    +    %d    chars' % ((lineno - 1), (offset - 1)))
        text.tag_add('ERROR', pos)
        text.see(pos)
        char = text.get(pos)
        if (char and (char in IDENTCHARS)):
            text.tag_add('ERROR', (pos + '    wordstart'), pos)
        self.tkconsole.resetoutput()
        self.write(('SyntaxError:    %s\n' % str(msg)))
    else:
        self.tkconsole.resetoutput()
        InteractiveInterpreter.showsyntaxerror(self, filename)
    self.tkconsole.showprompt()
