Answer the question
In order to leave comments, you need to log in
Is it possible to highlight/highlight the right words in the page text in the browser?
Greetings!
Is it possible to highlight certain text in the desired color in the Chrome or Firefox browser? I know about the "search" of the browser that highlights the search words. You need to highlight a few words or phrases. If possible, how to do it?
Answer the question
In order to leave comments, you need to log in
That is, like a search, only several variants of words at once?
You probably need a regular expression search:
https://chrome.google.com/webstore/detail/chrome-r...
https://addons.mozilla.org/en/firefox/addon/regexs...
Simple a multi-word regexp looks like this: Хром|Файрфокс|ещё что-то
. Words are separated by a vertical bar. Article for beginners - https://tproger.ru/articles/regexp-for-beginners/
Текст <span style="color: red">нужный</span> текст не<span style="color: red">нужный</span> текст.
Maybe. Example:
https://qna.habr.com/q/571574#:~:text=Maybe&tex...
Full documentation:
https://web.dev/text-fragments/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question