Friday, June 19, 2020

How to highlight text in a web page


When you share a URL to a long article, sometimes you want to highlight certain text to make your point.

Chrome has the text highlight feature.

For example, a plain link to a Wikipedia article.
https://en.wikipedia.org/wiki/Coronavirus
If you want to highlight a short sentence, you can put #:~:text= at the end of URL and followed by the text to be highlighted.
https://en.wikipedia.org/wiki/Coronavirus#:~:text=their%20origin%20in%20bats

If you want to highlight a long paragraph, the URL may become too long to share. In this case, you can put start text and end text with a comma in the middle. That is, #:~:text=startText,endText.

https://en.wikipedia.org/wiki/Coronavirus#:~:text=Many%20human,finally%20to%20humans
For more details, visit the the link.

No comments:

Post a Comment

How to make external drives spin down automatically on Ubuntu 20.10

 The following steps have been tested on Raspberry Pi 3. When using Raspberry Pi as a file server, it would save energy and extend an extern...