jQuery(function(){

    jQuery("pre code").each(function(){

			if (jQuery(this).find('.output').length || 
				jQuery(this).text().match(/^([-+]|\$\s)/)) {
					jQuery(this).html(jQuery(this).html().replace(/(\s?)\$\s/g, '$1<span class="com">$</span> ')) 
				} else {
					jQuery(this).addClass('prettyprint')
				}
			})

	jQuery.ajax({
		url: 'http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js',
		dataType: 'script',
		success: function(){prettyPrint();},
		cache: true
	});

})