(function($) {
$.fn.codeshow = function(){
return this.each(function(){
var df = document.createDocumentFragment();
var ol = $('
').appendTo(df);
$.each($(this).html().split("\n").slice(0, -1), function(i){
$('- ').html(this).appendTo(ol);
});
$(this).empty().append(df);
});
}
})(jQuery);