It's what I am currently using for this blog. Tommy Montgomery, I salute you.
Here's an example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
* jQuery plugin for Sunlight http://sunlightjs.com/
*
* (c) 2011 Tommy Montgomery http://tommymontgomery.com/
* licensed under WTFPL http://sam.zoy.org/wtfpl/
*/
(function($, window, undefined){
$.fn.sunlight = function(options) {
var highlighter = new window.Sunlight.Highlighter(options);
this.each(function() {
highlighter.highlightNode(this);
});
return this;
};
}(jQuery, window));
Huh, it's highlighting itself.
No comments:
Post a Comment