Highlight
Highlight is a simple Jquery plugin that highlights text phrases. It does so by wrapping one or multiple phrases with a span with the class name “highlight”. The demo explains it all.
How to use Highlight
You can throw both a string or an array on Highlight. Have a look at the example below. The first row is going to highlight the word acknowledgment, the second row is going to highlight both ‘matching’ and ‘class name’.
- $( element ).highlight("acknowledgment");
- $( element ).highlight(["matching","class name"]);
- .highlight { background: #ff0; }
Acknowledgment
Johann Burkard The core is based on ideas presented in Johann Burkard’s Jquery plugin with the same name.
3 days ago
Twitter Bootstrap 2.0 is here. By nerds, for nerds. Cross everything. http://t.co/J4cFxGlb A neat looking front-end toolkit.
5 days ago
“CoffeeScript is Beautiful; Don’t Use It” My thoughts exactly. Thank you @ryanflorence! http://t.co/4bTAAIqE
5 days ago
“CoffeeScript is Beautiful; Don’t Use It” My thoughts exactly. Thank you @ryanflorence! http://t.co/4bTAAIqE
9 days ago
Looking for a solid way to do application versioning? Look no further. http://t.co/OMYJ2xzF Semantic Versioning guidelines are nifty!
11 days ago
The impossible is possible! http://t.co/Y4whjPIT Girl sneezes with open eyes.
15 days ago
On Amazon: Bad reviews are better for product sales than no reviews. (via @ronnestam )
15 days ago
There are only 180k Twitter users in Sweden, but ~75% of Sweden’s journalists use Twitter. (via @ronnestam )