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?
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: 466
- Joined: Tue Jun 20, 2006 6:47 pm
- Contact:
Re: Can the StyledTextCtrl control highlight the cursor position?
You might try using indicators.