J
J
janraev2018-10-17 07:10:58
Browsers
janraev, 2018-10-17 07:10:58

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

4 answer(s)
A
AngReload, 2018-10-17
@janraev

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/

R
Roman, 2018-10-17
@lastuniverse

Catch :)
PS: changed a little, the cycle was not needed)

A
Alexey Ukolov, 2018-10-17
@alexey-m-ukolov

Текст <span style="color: red">нужный</span> текст не<span style="color: red">нужный</span> текст.

#what a simple answer

J
JerryGreen, 2020-08-18
@JerryGreen

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 question

Ask a Question

731 491 924 answers to any question