A simple text editor that automatically highlights Javascript code in the textarea as you type. (an edit-in-place sh)
(d=document).write('<style>#p,#d{text-shadow:0 0 20px #39E;top:0;left:0;white-space:pre;color:#756;width:100%;height:100%;padding:0 10px;border:none;line-height:20px;position:absolute;background:transparent;font:14px "Courier New"}#p{opacity:0.4}</style><div id="d">Type in some Javascript!</div><textarea id="p"></textarea>');p=d[g="getElementById"]("p");j="push";function c(b,a){l=[];z=[];for(_ in a){i=0;$=a[_];for(m=b.match(a[_]);$.test(b);)l[j]([$.lastIndex-m[i][n="length"],m[i++][n],_])}l.sort(function(f,k){return f[0]-k[0]});h=0;for(_ in l)if(!((e=($=l[_])[0]+$[1])<=h)){z[j]([h,$[0]-h,g],$);h=e}z[j]([h,b[n],g]);return z}p.onkeyup=function(){var b=d[g]("d"),a=p.value[u="replace"](/</g,"<");t=c(a,{"#288;border-bottom:dashed 1px #ccc":/\/\/.*|\/\*(.|\n)+\*\//g,"#D24":/".*?"|'.*?'/g,"#08c":/\b(else|switch|break|case|catch|new|finally|null|try|for|continue|function|var|if|return|while|do|with|in)(?!\w)/g});s="";for(i in t){y=t[i];s+="<span style='color:"+y[2]+"'>"+a.substr(y[0],y[1])+"</span>"}b.innerHTML=s}
KGQ9ZG9jdW1lbnQpLndyaXRlKCc8c3R5bGU+I3AsI2R7dGV4dC1zaGFkb3c6MCAwIDIwcHggIzM5RTt0b3A6MDtsZWZ0OjA7d2hpdGUtc3BhY2U6cHJlO2NvbG9yOiM3NTY7d2lkdGg6MTAwJTtoZWlnaHQ6MTAwJTtwYWRkaW5nOjAgMTBweDtib3JkZXI6bm9uZTtsaW5lLWhlaWdodDoyMHB4O3Bvc2l0aW9uOmFic29sdXRlO2JhY2tncm91bmQ6dHJhbnNwYXJlbnQ7Zm9udDoxNHB4ICJDb3VyaWVyIE5ldyJ9I3B7b3BhY2l0eTowLjR9PC9zdHlsZT48ZGl2IGlkPSJkIj5UeXBlIGluIHNvbWUgSmF2YXNjcmlwdCE8L2Rpdj48dGV4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