You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
The search currently does not support matches across multiple text blocks (i.e. paragraphs).
This seems to be an issue with Qt/QML first and foremost, as calling QTextDocment::find() with a regex containing \s, \u2029, \r or \n does not result in matches being found. It's quite possible that Qt/QML escapes the backslashes before passing them on to FormattableTextArea, which would explain why they're not working, but it's also possible there is another problem at work.
The TextHighlighter also currently does not support highlighting across multiple blocks, but that part at least is easy to implement. But before it can be implemented, QTextDocument::find() needs to return the right ranges.
The search currently does not support matches across multiple text blocks (i.e. paragraphs).
This seems to be an issue with Qt/QML first and foremost, as calling
QTextDocment::find()with a regex containing\s,\u2029,\ror\ndoes not result in matches being found. It's quite possible that Qt/QML escapes the backslashes before passing them on toFormattableTextArea, which would explain why they're not working, but it's also possible there is another problem at work.The
TextHighlighteralso currently does not support highlighting across multiple blocks, but that part at least is easy to implement. But before it can be implemented,QTextDocument::find()needs to return the right ranges.