[QScintilla] higlight all chosen words

Detlev Offenbach detlev at die-offenbachs.de
Tue Feb 24 18:11:54 GMT 2009


On Dienstag, 24. Februar 2009, Petr Vanek wrote:
> hi all,
>
> is there any way how to highlight all occurences of e.g. searched
> words in Qscintilla widget?
>
> Example: User is searching for word "foo" in custom search&replace
> dialog. So I call findFirst()/findNext() mechanism as it's required.
> But I want to have highlighted all occurences of searched term e.g.
> with background color.
>
> Is there any quick way how to do it or should I write it myself with
> setSelectionBackgroundColor()/resetSelectionBackgroundColor() in loop?
>
> cheers,
>
> Petr

Check the eric4 editor on how to do that.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the QScintilla mailing list