Skip to content

Instantly share code, notes, and snippets.

@wilkie
Last active December 11, 2015 23:49
Show Gist options
  • Save wilkie/4679679 to your computer and use it in GitHub Desktop.
Save wilkie/4679679 to your computer and use it in GitHub Desktop.
Some people really linked the browser notepad in one line thing... well have some syntax highlighting... still in one line. Ok, fine. A really long line. And I cheated so hard that the caret doesn't show up, but that's ok, right? :) Oh, and you can't copy and paste in HTML because contenteditable is really broken for pre tags, jeez.
data:text/html, <style>@import url(http://fonts.googleapis.com/css?family=Inconsolata);html,body{background-color:%233f3f3f}%23f,%23d{background-color:rgba(0,0,0,0);margin:0;padding:3px;font-size:14px;font-family:'Inconsolata';display:block}pre .nocode {background-color:none;color:%23000}pre .str{color:%23cc9393}pre .kwd{color:%23f0dfaf}pre .com{color:%237f9f7f}pre .typ {color:%23dfdfbf}pre .lit{color:%238cd0d3}pre .pun{color:%23fff}pre .pln{color:%23dcdccc}pre .tag{color:%23e89393;font-weight:bold}pre .atn{color:%23dfdfbf;font-weight:bold}pre .atv{color:%23dca3a3}pre .dec{color:%23efdcbc}ol.linenums{margin-top:0;margin-bottom:0;color:%23AEAEAE}li.L1,li.L3,li.L5,li.L7,li.L9{}%23m{position:relative;z-index:1;color:rgba(0,0,0,0);border:1px solid %23888}%23d{z-index:0;position:absolute;left:0px;top:0px}%23p{position:relative}</style><script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js" type="text/javascript"></script><div id="p"><pre id="m"><code id="f" oninput='d=document.getElementById("d");f=document.getElementById("f");if(d.innerText==undefined){d.innerHTML=f.innerHTML}else{d.innerText=f.innerText}d.className="prettyprint";prettyPrint()' contenteditable></code></pre><pre id="d">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment