I'm designing a matching tool for regular expressions, and I want to highlight the matching text in the window after typing pattern.
But regular expressions have some zero-width matching rules, such as "\b" matching the boundary of words, and I can't use the "SetStyling" function to highlight these zero-width text.
Is there any way I can highlight multiple cursor positions, or is there an alternative solution?
Like this:
Thank you for your help!
Can the StyledTextCtrl control highlight the cursor position?
-
- In need of some credit
- Posts: 2
- Joined: Sun May 28, 2023 12:35 am
Can the StyledTextCtrl control highlight the cursor position?
You do not have the required permissions to view the files attached to this post.
-
- Super wx Problem Solver
- Posts: 438
- Joined: Fri Dec 12, 2008 10:31 am
Re: Can the StyledTextCtrl control highlight the cursor position?
1, you can ask question on scintilla's forum, that forum may give your more information.
2, I don't see multiple caret, but it looks like if you would like to multiple select text or edit on multiple places, you will have multiple caret shown on the control.
Good luck.
2, I don't see multiple caret, but it looks like if you would like to multiple select text or edit on multiple places, you will have multiple caret shown on the control.
Good luck.
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
Re: Can the StyledTextCtrl control highlight the cursor position?
You might try using indicators.