ajaxorg/ace — reverse-engineered prompt

Reverse engineered prompt

Build me a standalone browser based code editor in JavaScript that I can drop into any web page and also try locally in a demo page. I want it to feel like a real desktop editor, not just a textarea. It should open with plain text, but let me switch language modes and themes, with syntax highlighting for lots of languages, auto indent, matching bracket highlights, code folding, line wrapping, soft tabs or real tabs, hidden characters, drag and drop text, search and replace with regex, multiple cursors and selections, and optional Vim and Emacs style keybindings. It should be fast even with very large files.

Please make the basic embed dead simple, where I can point it at a div with a fixed size and turn it into an editor, then optionally load a theme and a language mode. Include a kitchen sink style demo page that shows the main features, plus a simple way to run it locally in the browser without a complicated build step. If you need to, look up the current Ace docs online.

Want more depth? Deep Reverse