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

Multiple Highlights - Different Colors? #80

Open
mgjunk opened this issue Aug 31, 2017 · 1 comment
Open

Multiple Highlights - Different Colors? #80

mgjunk opened this issue Aug 31, 2017 · 1 comment

Comments

@mgjunk
Copy link

mgjunk commented Aug 31, 2017

Is there a way to highlight 2 different selections? Ex: highlight anything that matches Regex1 in blue and anything that matches Regex2 in orange? Both would be in the same textarea element?

@ELKADUSUNhalifesi
Copy link

ELKADUSUNhalifesi commented Apr 28, 2022

Selam
you can do it! look multiple colors section of http://garysieling.github.io/jquery-highlighttextarea/examples.html

$('textarea').highlightTextarea({ words: [{ color: '#ADF0FF', words: ['Lorem ipsum', 'vulputate'] }, { color: '#FFFF00', words: ['Donec'] }] });

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