Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (90 sloc) 9.35 KB
<!DOCTYPE>
<html>
<head>
<title>markdoc</title>
<style>
body, html {
padding: 0;
margin: 0;
}
h1, h2, h3 {
margin-top:10px;
}
h1 {
margin-bottom: 35px;
}
h2 {
margin-bottom: 30px;
}
h3 {
margin-bottom: 20px;
}
p {
margin-top: 0;
margin-bottom: 22px;
}
a {
text-decoration: none;
color: #4183C4;
}
body {
padding: 35px;
font-family: helvetica;
font-size: 14px;
line-height: 22px;
}
code {
font-size: 14px;
font-family: Monaco, Consolas, 'Lucida Console', monospace;;
}
p code {
background-color: ghostWhite;
border: 1px solid #dedede;
padding: 0 2px;
}
pre {
padding: 25px 15px;
background-color: #f8f8f8;
border: 1px solid #ccc;
}
.sh_sourceCode {
font-weight: normal;
font-style: normal;
}
.sh_sourceCode .sh_symbol , .sh_sourceCode .sh_cbracket {
color: #333;
}
.sh_sourceCode .sh_keyword {
color: #c96;
}
.sh_sourceCode .sh_string, .sh_sourceCode .sh_regexp, .sh_sourceCode .sh_number,
.sh_sourceCode .sh_specialchar
{
color: #690;
}
.sh_sourceCode .sh_comment {
color: #666;
}
</style>
</head>
<body>
<div>{0}</div>
<script>if(!this.sh_languages)this.sh_languages={};var sh_requests={};function sh_isEmailAddress(c){if(/^mailto:/.test(c))return!1;return c.indexOf("@")!==-1}function sh_setHref(c,a,b){b=b.substring(c[a-2].pos,c[a-1].pos);b.length>=2&&b.charAt(0)==="<"&&b.charAt(b.length-1)===">"&&(b=b.substr(1,b.length-2));sh_isEmailAddress(b)&&(b="mailto:"+b);c[a-2].node.href=b}function sh_konquerorExec(c){var a=[""];a.index=c.length;a.input=c;return a}
function sh_highlightString(c,a){if(/Konqueror/.test(navigator.userAgent)&&!a.konquered){for(var b=0;b<a.length;b++)for(var e=0;e<a[b].length;e++){var d=a[b][e][0];if(d.source==="$")d.exec=sh_konquerorExec}a.konquered=!0}var j=document.createElement("a"),f=document.createElement("span"),h=[],i=0,k=[],g=0,r=null,b=function(b,a){var d=b.length;if(d!==0){if(!a){var e=k.length;e!==0&&(e=k[e-1],e[3]||(a=e[1]))}if(r!==a&&(r&&(h[i++]={pos:g},r==="sh_url"&&sh_setHref(h,i,c)),a))e=a==="sh_url"?j.cloneNode(!1):
f.cloneNode(!1),e.className=a,h[i++]={node:e,pos:g};g+=d;r=a}},e=/\r\n|\r|\n/g;e.lastIndex=0;for(d=c.length;g<d;){var v=g,s,t;t=e.exec(c);t===null?t=s=d:(s=t.index,t=e.lastIndex);s=c.substring(v,s);for(var w=[];;){var n=g-v,l;l=k.length;l=l===0?0:k[l-1][2];var q=a[l],u=q.length,m=w[l];m||(m=w[l]=[]);l=null;for(var x=-1,p=0;p<u;p++){var o;p<m.length&&(m[p]===null||n<=m[p].index)?o=m[p]:(o=q[p][0],o.lastIndex=n,o=o.exec(s),m[p]=o);if(o!==null&&(l===null||o.index<l.index))if(l=o,x=p,o.index===n)break}if(l===
null){b(s.substring(n),null);break}else{l.index>n&&b(s.substring(n,l.index),null);n=q[x];q=n[1];if(q instanceof Array)for(m=0;m<q.length;m++)u=l[m+1],b(u,q[m]);else u=l[0],b(u,q);switch(n[2]){case -1:break;case -2:k.pop();break;case -3:k.length=0;break;default:k.push(n)}}}r&&(h[i++]={pos:g},r==="sh_url"&&sh_setHref(h,i,c),r=null);g=t}return h}function sh_getClasses(c){var a=[];if((c=c.className)&&c.length>0)for(var c=c.split(" "),b=0;b<c.length;b++)c[b].length>0&&a.push(c[b]);return a}
function sh_addClass(c,a){for(var b=sh_getClasses(c),e=0;e<b.length;e++)if(a.toLowerCase()===b[e].toLowerCase())return;b.push(a);c.className=b.join(" ")}
function sh_extractTagsFromNodeList(c,a){for(var b=c.length,e=0;e<b;e++){var d=c.item(e);switch(d.nodeType){case 1:d.nodeName.toLowerCase()==="br"?(d=/MSIE/.test(navigator.userAgent)?"\r":"\n",a.text.push(d),a.pos++):(a.tags.push({node:d.cloneNode(!1),pos:a.pos}),sh_extractTagsFromNodeList(d.childNodes,a),a.tags.push({pos:a.pos}));break;case 3:case 4:a.text.push(d.data),a.pos+=d.length}}}
function sh_extractTags(c,a){var b={text:[]};b.tags=a;b.pos=0;sh_extractTagsFromNodeList(c.childNodes,b);return b.text.join("")}function sh_mergeTags(c,a){var b=c.length;if(b===0)return a;var e=a.length;if(e===0)return c;for(var d=[],j=0,f=0;j<b&&f<e;){var h=c[j],i=a[f];h.pos<=i.pos?(d.push(h),j++):(d.push(i),a[f+1].pos<=h.pos?(f++,d.push(a[f]),f++):(d.push({pos:h.pos}),a[f]={node:i.node.cloneNode(!1),pos:h.pos}))}for(;j<b;)d.push(c[j]),j++;for(;f<e;)d.push(a[f]),f++;return d}
function sh_insertTags(c,a){for(var b=document,e=document.createDocumentFragment(),d=0,j=c.length,f=0,h=a.length,i=e;f<h||d<j;){var k,g;d<j?(k=c[d],g=k.pos):g=h;g<=f?(k.node?(g=k.node,i.appendChild(g),i=g):i=i.parentNode,d++):(i.appendChild(b.createTextNode(a.substring(f,g))),f=g)}return e}
function sh_highlightElement(c,a){sh_addClass(c,"sh_sourceCode");for(var b=[],e=sh_extractTags(c,b),d=sh_highlightString(e,a),b=sh_mergeTags(b,d),e=sh_insertTags(b,e);c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(e)}function sh_getXMLHttpRequest(){if(window.ActiveXObject)return new ActiveXObject("Msxml2.XMLHTTP");else if(window.XMLHttpRequest)return new XMLHttpRequest;throw"No XMLHttpRequest implementation available";}
function sh_load(c,a,b,e){if(c in sh_requests)sh_requests[c].push(a);else{sh_requests[c]=[a];var d=sh_getXMLHttpRequest();d.open("GET",b+"sh_"+c+e,!0);d.onreadystatechange=function(){if(d.readyState===4)try{if(!d.status||d.status===200){eval(d.responseText);for(var a=sh_requests[c],b=0;b<a.length;b++)sh_highlightElement(a[b],sh_languages[c])}else throw"HTTP error: status "+d.status;}finally{d=null}};d.send(null)}}
function highlight(c,a,b){for(var e=document.getElementsByTagName(b),d=0;d<e.length;d++){for(var j=e.item(d),f=sh_getClasses(j),h=!1,i=!1,k=0;k<f.length;k++){var g=f[k].toLowerCase();if(g==="sh_none")i=!0;else if(g.substr(0,3)==="sh_"){f=g.substring(3);if(f in sh_languages)sh_highlightElement(j,sh_languages[f]),h=!0;else if(typeof c==="string"&&typeof a==="string")sh_load(f,j,c,a);else throw"Found <"+b+'> element with class="'+g+'", but no such language exists';break}}h===!1&&i==!1&&sh_highlightElement(j,
sh_languages.javascript)}}function sh_highlightDocument(c,a){highlight(c,a,"tt");highlight(c,a,"code");highlight(c,a,"pre")}if(!this.sh_languages)this.sh_languages={};
sh_languages.javascript=[[[/\/\/\//g,"sh_comment",1],[/\/\//g,"sh_comment",7],[/\/\*\*/g,"sh_comment",8],[/\/\*/g,"sh_comment",9],[/\b(?:abstract|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|final|finally|for|function|goto|if|implements|in|instanceof|interface|native|new|null|private|protected|prototype|public|return|static|super|switch|synchronized|throw|throws|this|transient|true|try|typeof|var|volatile|while|with)\b/g,"sh_keyword",-1],[/(\+\+|--|\)|\])(\s*)(\/=?(?![*\/]))/g,
["sh_symbol","sh_normal","sh_symbol"],-1],[/(0x[A-Fa-f0-9]+|(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?)(\s*)(\/(?![*\/]))/g,["sh_number","sh_normal","sh_symbol"],-1],[/([A-Za-z$_][A-Za-z0-9$_]*\s*)(\/=?(?![*\/]))/g,["sh_normal","sh_symbol"],-1],[/\/(?:\\.|[^*\\\/])(?:\\.|[^\\\/])*\/[gim]*/g,"sh_regexp",-1],[/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,"sh_number",-1],[/"/g,"sh_string",10],[/'/g,"sh_string",11],[/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g,
"sh_symbol",-1],[/\{|\}/g,"sh_cbracket",-1],[/\b(?:Math|Infinity|NaN|undefined|arguments)\b/g,"sh_predef_var",-1],[/\b(?:Array|Boolean|Date|Error|EvalError|Function|Number|Object|RangeError|ReferenceError|RegExp|String|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt)\b/g,"sh_predef_func",-1],[/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,"sh_function",-1]],[[/$/g,null,-2],[/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
"sh_url",-1],[/<\?xml/g,"sh_preproc",2,1],[/<!DOCTYPE/g,"sh_preproc",4,1],[/<\!--/g,"sh_comment",5],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,"sh_keyword",6,1],[/&(?:[A-Za-z0-9]+);/g,"sh_preproc",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,"sh_keyword",6,1],[/@[A-Za-z]+/g,"sh_type",-1],[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],[[/\?>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,
["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/\\(?:\\|")/g,null,-1],[/"/g,"sh_string",-2]],[[/>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/--\>/g,"sh_comment",-2],[/<\!--/g,"sh_comment",5]],[[/(?:\/)?>/g,"sh_keyword",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/$/g,null,-2]],[[/\*\//g,"sh_comment",-2],[/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
"sh_url",-1],[/<\?xml/g,"sh_preproc",2,1],[/<!DOCTYPE/g,"sh_preproc",4,1],[/<\!--/g,"sh_comment",5],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,"sh_keyword",6,1],[/&(?:[A-Za-z0-9]+);/g,"sh_preproc",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,"sh_keyword",6,1],[/@[A-Za-z]+/g,"sh_type",-1],[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],[[/\*\//g,"sh_comment",-2],[/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
"sh_url",-1],[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],[[/"/g,"sh_string",-2],[/\\./g,"sh_specialchar",-1]],[[/'/g,"sh_string",-2],[/\\./g,"sh_specialchar",-1]]];highlight(void 0,void 0,"pre");</script></body></html>