View Single Post
Old 05-01-2010, 09:56 PM   #26
prky
Member
prky began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2009
Device: IPhone 3GS
Quote:
Originally Posted by chaley View Post
There is in fact a problem here, but not the one the OP was suggesting.

Second (the problem): the regexp tester does not show multi-line matches. The problem is that it uses the QSyntaxHighlighter, which my experimentation shows to be a line-oriented interface, making highlighting multiline matches impossible. I think that the regex texter should match directly against the text in the QTextEdit box, using something like setTextBackgroundColor to indicate matches. I admit that I haven't hacked the code to try this idea, but it seems plausible. I will file a ticket on this so that someone more acquainted than I am with the widgets can think about a solution.
Sweet.

Thank you so much for diagnosing that, and working out it's the display in the tester which was the issue (once I'd eventually got a working regex).

Much appreciated.

prk.
prky is offline   Reply With Quote