Wednesday, December 31, 2008
Testing GeSHIfy
[-code lang=javascript line=normal keyword_links=true overall_class=code_block-]
ChiliBook.automatic = false;
$( function() {
$( '#highlight' )
.one( 'click', function() {
var time1 = new Date();
var $chili = $( '#jq' ).chili();
var time2 = new Date();
var delta = time2 - time1;
var spans = $chili.find( 'span' ).length;
var rate = Math.round( spans / delta * 100 ) / 100;
$( '#highlight' ).html(
'highlight done in ' + delta + ' milliseconds'
+ ' with ' + spans + ' spans'
+ ' at a rate of ' + rate * 1000 + ' span/sec'
);
} )
.show()
;
} );
[-/code-]
[-code lang=css line=normal keyword_links=true overall_class=code_block-]
body {
font-size: 1.2em;
line-height: 1.5em;
}[-/code-]
[-code lang=php line=normal keyword_links=true overall_class=code_block-]
<?php
echo “This is a test”;
function adminTest()
{
echo "This is my name";
}
?>[-/code-]