最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ide - Is there a decent browser-based javascript self-editor? - Stack Overflow

programmeradmin4浏览0评论

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.

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.

Share Improve this question asked May 7, 2009 at 18:39 PaulPaul 27.4k13 gold badges89 silver badges126 bronze badges 1
  • If jsbin could be attached to an existing page that would be about the right idea. But all the answers people have posted are all interesting. Further suggestions are appreciated. JUSH jush.sourceforge looks interesting for markup of existing code because it links back to documentation. For my particular application I'm running prototype.js already, which may affect what else I can load in an execution environment. – Paul Commented May 7, 2009 at 21:14
Add a ment  | 

6 Answers 6

Reset to default 6

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

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

There is

  • http://sourceforge/projects/codepress
  • http://www.cdolivet./index.php?page=editArea&sess=4b049cee4477f0820c82231b09e80a91
  • http://marijn.haverbeke.nl/codemirror/

Do also check out Bespin.

There are also integrated solutions which, in addition to browser-based online editing of JavaScript code, do other things for you, like running the JS code in the browser or hosting it for you.

If you're interested in those, try Erbix..

coderun

发布评论

评论列表(0)

  1. 暂无评论