$(function() {
// get javascript source
$("#javascript pre").text($("#js").html());
if($("#demo").size() > 0) {
// old school chaining...
var html = $("#demo").html()
.toLowerCase()
.replace(/\n|\t|\r/g,'')
.replace(/
/g,' | \n')
.replace(//g,' | \n')
.replace(/<\/tr>/g,'\t\t')
.replace(//g,'\n\t\t
\n')
.replace(/')
.replace(/<\/thead>/g,'\n\t')
.replace(/
/g,'\n\t')
.replace(/<\/table>/g,'\n')
.replace(/-->/g,'-->\n');
$("#html pre").text(html);
}
$("pre.javascript").chili();
$("pre.html").chili();
$("pre.css").chili();
});