Closed nongcaro closed 4 years ago
I have solved my issue with GetRanges
using (\r\n?|\n)
for newlines, even though after this testing, it's \r\n
instead \n
. But whatever. This works, but not with Find.
How do I select newlines with Find?
Aha, it seems like the Find source code uses GetRangesByLines()
, and that doesn't work with multi-lines. If you want to fix this, use a custom Find form with GetRanges()
instead of GetRangesByLines()
.
Hello, I have a string of
And my regex is
Hello\nHello1
, it's supposed to be highlighted like this:But with FastColoredTextBox, Find gives "Not found", this is an issue when I want to use GetRanges with multiline patterns.
What can I do? Thanks.