Skip to content

Instantly share code, notes, and snippets.

@jrichter
Forked from jakeonrails/Ruby Notepad Bookmarklet
Last active December 11, 2015 22:38
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 jrichter/4670434 to your computer and use it in GitHub Desktop.
Save jrichter/4670434 to your computer and use it in GitHub Desktop.
This was based off of this, "data:text/html, <html contenteditable>" from this thread, https://coderwall.com/p/lhsrcq, and forked from a different gist in the comments of that thread.
data:text/html, <title>Ruby Mode Text Editor</title><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>
@jrichter
Copy link
Author

Just copy that line into the address bar in a modern browser, url encode if it doesn't work in firefox (tip from comment in original gist).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment