Skip to content

Instantly share code, notes, and snippets.

@Sumukh
Forked from jakeonrails/Ruby Notepad Bookmarklet
Created January 29, 2013 19:31
Show Gist options
  • Select an option

  • Save Sumukh/4666948 to your computer and use it in GitHub Desktop.

Select an option

Save Sumukh/4666948 to your computer and use it in GitHub Desktop.
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>
@Sumukh
Copy link
Author

Sumukh commented Jan 29, 2013

Change the setMode("ace/mode/ruby") to whatever language you'd like to code in.

Use it as a javascript bookmarklet.

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