document.cookie = 'colorwithjs=1;path=/;max-age=' + (60*60*24*365); (function(){ var line = 1; var ml; var firstTime = true; window.theCode = []; window.theCode2 = []; var currentTags = []; window.addCode = function (code) { if (firstTime) { ml = {}; var tmp = window.marked_lines; if (tmp) { for (var i=0; i < tmp.length; i++) { ml[tmp[i]] = true; } } code = "\n" + code; } theCode.push (code); code = code.replace ( /<([ACVSI])/g, function (str,letter) { return ""; } ); code = code.replace ( /<([DML])([^>]+)>/g, function (str, letter, contents) { switch (letter) { case "D": return "" +contents + ""; case "M": return "<" + contents + ">"; case "L": return "" + contents + ""; } return } ); code = code.replace( /<(\/?)([^\s>]+)(\s+[^>]+)?>|(>)/g, function (str, isEndTag, tagName, attributesStr, gt) { if (!isEndTag && tagName) { currentTags.push (tagName); } else { var string = arguments [arguments.length - 1]; var offset = arguments [arguments.length - 2]; var startTag = currentTags.pop(); if (gt) { //throw new Error( gt + " found alone (offset: " + offset + ")\n\n" + string.slice( offset, 150 ) ); str = ""; } else if (attributesStr) { throw new Error ("Incorrect end tag:\n" + str); } else if (startTag != tagName) { throw new Error ("Mismatching tags: <" + startTag + "> ... "); } } return str; } ); code = code.replace ( /\n(
|<\/div>|