jQuery.highlightRegex icon indicating copy to clipboard operation
jQuery.highlightRegex copied to clipboard

Custom tagtypes and classnames

Open zchef2k opened this issue 14 years ago • 1 comments
trafficstars

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.

zchef2k avatar Apr 21 '11 14:04 zchef2k

@zchef2k You might be interested in mark.js

julkue avatar Mar 31 '16 10:03 julkue