require.def("syntax-highlighter/shCore",[],function(){var d={sh:{Toolbar:{},Utils:{},RegexLib:{},Brushes:{},Strings:{AboutDialog:'About...

dp.SyntaxHighlighter

Version: {V}

http://www.dreamprojections.com/syntaxhighlighter

©2004-2007 Alex Gorbatchev.
'}, ClipboardSwf:null,Version:"1.5.1"}};d.SyntaxHighlighter=d.sh;d.sh.Toolbar.Commands={ExpandSource:{label:"+ expand source",check:function(a){return a.collapse},func:function(a,b){a.parentNode.removeChild(a);b.div.className=b.div.className.replace("collapsed","")}},ViewSource:{label:"view plain",func:function(a,b){a=d.sh.Utils.FixForBlogger(b.originalCode).replace(/'+ a+"");b.document.close()}},CopyToClipboard:{label:"copy to clipboard",check:function(){return window.clipboardData!=null||d.sh.ClipboardSwf!=null},func:function(a,b){a=d.sh.Utils.FixForBlogger(b.originalCode).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&");if(window.clipboardData)window.clipboardData.setData("text",a);else if(d.sh.ClipboardSwf!=null){var c=b.flashCopier;if(c==null){c=document.createElement("div");b.flashCopier=c;b.div.appendChild(c)}c.innerHTML=''}alert("The code is in your clipboard now")}},PrintSource:{label:"print",func:function(a,b){a=document.createElement("IFRAME");var c=null;a.style.cssText="position:absolute;width:0px;height:0px;left:-500px;top:-500px;";document.body.appendChild(a);c=a.contentWindow.document;d.sh.Utils.CopyStyles(c,window.document);c.write('
'+b.div.innerHTML+"
");c.close();a.contentWindow.focus();a.contentWindow.print();alert("Printing...");document.body.removeChild(a)}},About:{label:"?",func:function(){var a=window.open("","_blank","dialog,width=300,height=150,scrollbars=0"),b=a.document;d.sh.Utils.CopyStyles(b,window.document);b.write(d.sh.Strings.AboutDialog.replace("{V}",d.sh.Version));b.close();a.focus()}}};d.sh.Toolbar.Create=function(a){var b=document.createElement("DIV");b.className="tools";for(var c in d.sh.Toolbar.Commands){var f= d.sh.Toolbar.Commands[c];f.check!=null&&!f.check(a)||(b.innerHTML+='"+f.label+"")}return b};d.sh.Toolbar.Command=function(a,b){for(var c=b;c!=null&&c.className.indexOf("dp-highlighter")==-1;)c=c.parentNode;c!=null&&d.sh.Toolbar.Commands[a].func(b,c.highlighter)};d.sh.Utils.CopyStyles=function(a,b){b=b.getElementsByTagName("link");for(var c=0;c')};d.sh.Utils.FixForBlogger=function(a){return d.sh.isBloggerMode==true?a.replace(/|<br\s*\/?>/gi,"\n"):a};d.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"',"g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")};d.sh.Match=function(a,b,c){this.value=a;this.index=b;this.length= a.length;this.css=c};d.sh.Highlighter=function(){this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true};d.sh.Highlighter.SortCallback=function(a,b){if(a.indexb.index)return 1;else if(a.lengthb.length)return 1;return 0};d.sh.Highlighter.prototype.CreateElement=function(a){a=document.createElement(a);a.highlighter=this;return a};d.sh.Highlighter.prototype.GetMatches= function(a,b){for(var c=null;(c=a.exec(this.code))!=null;)this.matches[this.matches.length]=new d.sh.Match(c[0],c.index,b)};d.sh.Highlighter.prototype.AddBit=function(a,b){if(!(a==null||a.length==0)){var c=this.CreateElement("SPAN");a=a.replace(/ /g," ");a=a.replace(/");if(b!=null)if(/br/gi.test(a)){a=a.split(" 
");for(var f=0;fc.index&&a.index/gi,"\n").split("\n");this.addControls==true&&this.bar.appendChild(d.sh.Toolbar.Create(this));if(this.showColumns){for(var b= this.CreateElement("div"),c=this.CreateElement("div"),f=1;f<=150;)if(f%10==0){b.innerHTML+=f;f+=(f+"").length}else{b.innerHTML+="·";f++}c.className="columns";c.appendChild(b);this.bar.appendChild(c)}f=0;for(b=this.firstLine;f0;i++)if(b(e[i]).length!=0){var g=l.exec(e[i]);if(g!=null&&g.length>0)m=Math.min(g[0].length,m)}if(m>0)for(i=0;i