Quote:
Originally Posted by kovidgoyal
@user-none: you may well be right, as I said I have not looked into it in any detail. I assume highlighting matches and scrolling is how you do it in QPlainTextEdit, or do you use QRegExp?
|
Highlighting matches and scrolling is what I use in Sigil.
QRegExp is severely limited. It's not even worth looking at.
Qt 5 added QRegularExpression which is libPCRE based. It has full search support but doesn't offer robust replacement options. I don't use it in Sigil for user search and replace for this reason.
I wrote a wrapper around libPCRE that allows me to search, replace and programmatically highlight and scroll to a match.