Skip to content
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

Highlight a piece of text #90

Closed
AjaxZhan opened this issue Jan 25, 2024 · 2 comments
Closed

Highlight a piece of text #90

AjaxZhan opened this issue Jan 25, 2024 · 2 comments

Comments

@AjaxZhan
Copy link

This js library is very useful for me.However, how can I highlight a piece of text instead of certain words, in other words, can I use this library to highlight an area?

@TaTo30
Copy link
Owner

TaTo30 commented Feb 16, 2024

There aren't a way to highlight an area using the library so far, but if you can get the divs that you need to highlight you can append the highlight class:

span.className = 'highlight appended'

highlight.ts

@TaTo30
Copy link
Owner

TaTo30 commented May 5, 2024

I will close this Issue since is a duplicate of #98

@TaTo30 TaTo30 closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants