有没有一个不错的基于浏览器的 javascript 自编辑器?

发布于 2024-07-19 07:21:50 字数 334 浏览 4 评论 0原文

有没有一个不错的基于浏览器的 javascript 自编辑器?

很明显,我们可以制作一个快速的 js 编辑器,其中包含一个包含表单文本区域、一些按钮和回调的页面。 我想知道是否有人以此为起点并以此为基础。

要编辑的 JavaScript 可以在全局字符串中定义,也可以是服务的 .js。

理想的编辑器会在浏览器窗口中显示漂亮的版本,并提供某种用于编辑脚本的开发环境。

据了解,用户编写的脚本仅存在于浏览器内部,如果没有一些额外的服务器端功能,则无法保存。 理想的包会讨论和探索这个......但我会满足于任何只允许用户对 100-200 行脚本进行自己的简单更改的东西。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

鹤舞 2024-07-26 07:21:50

我不确定您到底想要什么,但是 jsbin 能满足您的需求吗?

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

傻比既视感 2024-07-26 07:21:50

听起来你想做的事情的困难部分是解析 javascript,以便你可以用它来做智能的事情。 CodeMirror 库可以帮助您开发一些要放在页面上的内容。

更新:

Etherpad 已经不存在了,但是 Ace 确实很棒。 它有着悠久的历史,是 Cloud9 IDE 使用的引擎

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

两个我 2024-07-26 07:21:50

另请查看 Bespin

Do also check out Bespin.

玻璃人 2024-07-26 07:21:50

还有一些集成解决方案,除了基于浏览器的在线编辑 JavaScript 代码之外,还可以为您做其他事情,例如在浏览器中运行 JS 代码或为您托管它。

如果您对这些感兴趣,请尝试 Erbix.com

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.com.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文