jbr / jQuery.highlightRegex

jQuery Plugin that lets you highlight document text with a regular expression.
http://jbr.github.io/jQuery.highlightRegex
102 stars 22 forks source link

Custom tagtypes and classnames #4

Open zchef2k opened 13 years ago

zchef2k commented 13 years ago

No matter what I cannot get to work the arguments to change the default element and class for matched expressions. No matter how I put it together, it defaults to span .highlight.

$(document).ready(function(){ $(".css-tabs").highlightRegex( /[aeiou]/ig, { tagType: 'span', className: 'ipHighlight' }); });

Thanks, great plugin. I can't wait to master it.

julkue commented 8 years ago

@zchef2k You might be interested in mark.js