ACE editor for editing your gists
✓ Published0🌍 Public
Aabernier
Last edited Jul 18, 2012
Created on Nov 15, 2011
This userscript replaces GitHub Gist textareas with the ACE editor, preserving the original hidden textarea for form submission. It loads ACE, jQuery, and the Twilight theme via the LABjs script loader, then injects a sized container after each textarea and hides the native field. The editor synchronizes its content back to the textarea on every change, and detects the file extension from the gist’s filename input to dynamically load and apply the matching syntax mode (JavaScript, CoffeeScript, HTML, or CSS) via `ace.edit`, `session.setMode`, and `require`. Data comes from the gist’s own textarea values and filenames.
AI-generated description