
$(function(){function getType(content){try{var elements=$(content);return"markup";}catch(err){return"javascript";}}
var code=$(".code").val();var type=getType(code);$("code").attr("class"," language-"+type);var html=Prism.highlight(code,Prism.languages[type],type);$("code")[0].innerHTML=html;});