Skip to content

Instantly share code, notes, and snippets.

@sc0ttman
Forked from jakeonrails/Ruby Notepad Bookmarklet
Last active December 11, 2015 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sc0ttman/4668173 to your computer and use it in GitHub Desktop.
Save sc0ttman/4668173 to your computer and use it in GitHub Desktop.
Ruby Editor:
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
Autofocus textarea:
data:text/html, <textarea style="font-size: 1em;font-family:'Lucida Console';width: 100%; height: 100%; border: none; outline: none" autofocus />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment