View Single Post
Old 10-12-2013, 10:08 PM   #37
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kovidgoyal View Post
@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.
user_none is offline