Is there a simple (possibly with no dependencies) syntax highlighter witch tokenizes Python source code? I need it to return the token type, the offset from the beginning of the code and token length.
I wanted to use Python build-in tokenize but it does not return the offsets.
I also looked to a few of standard syntax highlighters but they all tokenize other languages as well, which is overkill for my case. All I'm looking for is simple (and fast) Python syntax highlighter.
Thanks in advance!