<div>Hi,</div><div><br></div><div>I needed pygments QScintilla lexer for my project, and found your LexerPygments implementation. The problem with it is that is is really slow. For me, 10 % CPU load in idle, and 100% whey actively typing (tested on Eric4 on Scheme source file)</div>
<div><br></div><div>Profer gave amazing results, parsing source with pygments and highlighting is is really quick, 0.1 ms for my test source file, but, you detect file language with pygments on  every iteration, and it takes 182 ms. If I don't detect language every time, highlighting is really quick.</div>
<div><br></div><div>If you would like, you may check my implementation. Probably, you'll find some other useful improvements, such as using QsciLexerCustom, or native pygments styles.</div><div><a href="https://github.com/hlamer/mksv3/blob/scheme/mks/plugins/lexerpygments.py">https://github.com/hlamer/mksv3/blob/scheme/mks/plugins/lexerpygments.py</a></div>
<div><br></div><div>Andrei Kopats</div><div><a href="http://hlamer.github.com/mksv3/">http://hlamer.github.com/mksv3/</a></div>