-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: What is the strategy to implement Highlight All for found matches for modifiable text? #1227
Comments
I was thinking about the following solution:
Is this a correct way? |
Yes that sounds about right ..... |
@Jugen Thank you very much for your answer. Do I understand it correctly that there is no low level API for getting text changes in RichTextFX? For example, I would like to get events - text added/removed/replaced with text and positions. |
You can use either |
@Jugen Yes, this is what I was looking for. Thank you very much for your help. |
I have a
CodeArea
with text that can be modified by user. Now, I want to implementHighlight All
for all found matches (for search).As I understand for all found matches I do
codeArea. setStyle(from, to, style)
. But, if the user updates some match so that it shouldn't be highlighted anymore then how should I control what text was modified to remove highlighting? What if user pastes some text inside found match or deletes large block of text? Could anyone say how such things are done with RichTextFX?The text was updated successfully, but these errors were encountered: