question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Add option to highlight the first n occurrences of a word

See original GitHub issue

Would love an option to only highlight the first n occurrences of a word. I’m working on a website for a conservation agency and words like conservation, and species among others are often highlighted 10+ times.

Being able to limit the number of times a single word is highlighted would reduce the visual burden of the highlighter on my users.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rhewitt22commented, Jun 20, 2016

Awesome, thanks @julmot! I’m going to make the move from my implementation to yours just as soon as I have the time.

I’m currently working on a responsive redesign the Southeast Region of the U.S. Fish and Wildlife Service website. We’ll use Mark.js as part of our glossary feature. We’ll wrap our glossary terms in a class as a hook for a click handler that triggers the off-canvas glossary to help our users understand scientific and bureaucratic terms.

I very much appreciate your work and the addition of this feature!

jun-20-2016 11-37-35

0reactions
julmotcommented, Apr 16, 2017

@whodidthis Please open a new issue with a jsfiddle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to quickly highlight recurring text in Word | TechRepublic
In this article, I'll show you two ways to highlight recurring text: using Word's Find & Replace and Find options.
Read more >
How to highlight occurrences of a search term in text in Visual ...
I copied and pasted the source code into Word 2007. This has highlight all option called 'Reading Highlight'.
Read more >
Highlight all occurrences of a string/word in the text
Hi, I want to know if I can search for a word in the text and UltraEdit can highlight (select) all the occurrences...
Read more >
Highlight every occurrence of a word in Microsoft Word
Highlight every occurrence of a word in Microsoft Word. Watch later. Share. Copy link. Info. Shopping. Tap to unmute.
Read more >
Apply or remove highlighting - Microsoft Support
Highlight multiple parts of a document · Go to Home and select the arrow next to Text Highlight Color. The Text Highlight Color...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found