Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a decent browser-based javascript self-editor?

Is there a decent browser-based javascript self-editor?

It is obvious one can make a quick js editor with a page containing a form textarea, some buttons and callbacks. I'm wondering if someone has taken that as a beginning and ran with it.

The javascript to be edited could be defined in a global string or it could be a served .js

The ideal editor would show a pretty version inside a browser window and provide some kind of development environment for editing the script.

It is understood that user-written scripts would only exist inside the browser and could not be saved without some additional server-side functionality. The ideal package would discuss and explore this.... but I'd settle for anything that just lets the user make their own simple changes to 100-200 line scripts.

like image 863
Paul Avatar asked May 07 '09 18:05

Paul


3 Answers

I'm not sure exactly what you're asking for, but does jsbin satisfy your needs?

like image 68
Samantha Branham Avatar answered Nov 12 '22 19:11

Samantha Branham


The hard part of what it sounds like you want to do is going to be parsing the javascript so that you can do intelligent things with it. The CodeMirror library can help you develop something to put on a page.

UPDATE:

Etherpad isn't around anymore but Ace is really nice. It's got a long history and is the engine used by the Cloud9 IDE

like image 37
Waylon Flinn Avatar answered Nov 12 '22 18:11

Waylon Flinn


There is

  • http://sourceforge.net/projects/codepress
  • http://www.cdolivet.com/index.php?page=editArea&sess=4b049cee4477f0820c82231b09e80a91
  • http://marijn.haverbeke.nl/codemirror/
like image 2
Fabien Ménager Avatar answered Nov 12 '22 20:11

Fabien Ménager