-
Notifications
You must be signed in to change notification settings - Fork 43
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
How can I highlight more than one occurrence of a match? #107
Comments
There's no way to specify "highlight all" but you can specify multiple instances. In your example:
Would do the trick. |
I know that, I am using this way for some cases. Only the first word "Google" is selected, however if you search CTRL+F for the word "Google", all occurrences will be highlighted. I would like to simulate this effect. Is there any intention in the project for this to be implemented? Thanks for the answer, |
There's no current intention to do that but it's an interesting feature request and could be considered in the future. Do you have a use case that could be used to motivate it? |
Hi Indeed multiple matches support could be used to highlight some data in tables when we know a pattern but not the specific data, when we create the link. Text being a regexp could also offer many more usage :) |
I found a website where a syntax like However, this syntax doesn't seem to work anywhere else, so it's probably not a feature of Chrome but a function of that website. |
It's a website feature of the specific site in question, but you can emulate it using multiple Text Fragments. This is a manual process, though, where you need to hand-craft a link. |
@icarojerry, potentially, an array system would be the most straight forward method – |
Would love to have this. Any updates? |
+1 for this |
So 22 year old Quip might work, in a pinch: https://purpleslurple.com/quip.php?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGoogle_Chrome&text=Google&annotation=Look%20at%20that!%20All%20occurrences%20highlighted.%20%3A) Another (clearer?) example: https://purpleslurple.com/quip.php?text=Granular%20Addressability%20in%20HTML%20Documents%20-%20ON%20THE%20FLY&url=https%3A%2F%2Fdougengelbart.org%2Fcolloquium%2Fforum%2Fba-unrev-talk%2F0209%2Fmsg00015.html You could grab: https://github.com/purpleslurple/PurpleSlurple/blob/master/quip.php When I last touched that code you could make multiple selections by simply wash repeat cycle on a given page. For some reason, that now breaks. (Maybe Github sessions have changed? My code hasn't. :) PurpleSlurple is pretty cool too: PurpleSlurple.com |
Supposing I have a text like:
And use
#:~:text=google
, only the first occurrence is highlighted, while I would like to highlight all occurrences.All the text is in the same context and fragment.
Is it possible to do that?
The text was updated successfully, but these errors were encountered: