Well, we're talking of maybe 100k lines max. The general size will be like 10k lines, each line having up to 40-50 characters. Actually a scalable solution would be to only perform on the visible text, so the final size of the QTextEdit would not really matter.
Bookmarks