QPlainTextEdit syntax highlighting mouse selections
-
I am using a QPlainTextEdit control with syntax highlighting enabled to highlight javascript. I am finding that mouse selections do not work as expected, for example if I have the line:
@// get filenames from upload@
and double click the word "get" then the word "upload" gets selected.
Another example, if I have the line:
@var x = Test.function();@
This one exhibits a number of issues.
- When I click anywhere between "var" and "." it will place the cursor after after the period ".".
- When I click and drag from the Beginning of "Test" to the end of that line the only thing that gets selected is "function();"
Is there any way around this? Thanks.