> I made a cut down version of the GUI just to show you what the bug
> looks like: http://imgur.com/dcRbi
>
> In the image, both annotations should look like the left hand one,
> with a yellow background and smaller, italicized text. The code which
> generates this I've put here: https://gist.github.com/944268
I don't use QScintilla but my guess is that there is some sort of
once-only use or a reference-counting issue.
Perhaps the style number allocation caused by using -1 in the
QsciStyle call only occurs in the context of the first editor instance
it is used with and you should have separate calls to QsciStyle for
each instance. The use of -1 here is specific to QScintilla and not
generic Scintilla.
There may be a forum or other support mechanism specifically for
QScintilla with people more knowledgeable about this issue.
Neil