Open mgjunk opened 7 years ago
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'] }] });
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?