哪种浏览器/IDE 用于快速插件开发/原型设计?
我想为浏览器开发一个扩展程序,它可以执行以下操作。
先决条件:已选择文本,已触发附加组件(例如通过单击上下文菜单)
- 读取所选文本
- 将文本传递到(例如 RESTful)Web 服务
- 中检索评论列表
- 从 Web 服务显示 它们在浏览器中
- 可选:还显示下面的输入字段,以向网络服务发送另一条评论
编写 Firefox 插件变得非常烦人,因为我还没有找到合适的文档和 IDE(使用方便的构建过程)。
您推荐哪种浏览器/IDE 组合用于快速插件开发/原型设计?
I'd like to develop an extension for a browser which does the following.
Prerequisite: Text has been selected, add-on has been triggered (e.g. by click in context menu)
- read selected text
- pass the text to a (e.g. RESTful) webservice
- retrieve a list of comments from the webservice
- show them in the browser
- optional: show also an input field below to send another comment to the webservice
Writing a Firefox add-on became quite annoying since I haven't found a proper documentation and IDE (with a handy build process).
Which Browser/IDE combination do you recommend for rapid add-on development/prototyping?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 Google Chrome,您可以使用网络技术来创建扩展程序。 (据我所知火狐是同一件事)。 Google Chrome 扩展程序的文档记录得很好: http://code.google.com /chrome/extensions/index.html
对于您提到的情况,我已经回答了另一位用户如何捕获所选文本并将其发送到服务,并提供了一个工作示例,如果您愿意,您可以从中学习:
<一个href="https://stackoverflow.com/questions/2626859/chrome-extension-how-to-capture-selected-text-and-send-to-a-web-service">Chrome 扩展程序:如何捕获选定的文本并发送到网络服务
关于您可以使用的工具,这取决于您熟悉的工具。就我个人而言,我只使用具有语法高亮的编辑器,例如VIM、Notepad2等。有些人使用dreamweaver、emacs、notepad等。最后这一切都取决于你的品味。
祝你好运!
For Google Chrome, you use web technologies to create extensions. (AFAIK Firefox is the same thing). The documentation for Google Chrome Extensions is documented pretty well: http://code.google.com/chrome/extensions/index.html
For the case you have mentioned, I have answered another user on how to capture selected text and send them to a service with a working example that you can learn from if you want:
Chrome Extension: how to capture selected text and send to a web service
Regarding the tools that you can use, it depends on what your comfortable with. Personally, I just use an editor that has syntax hilighting such as VIM, Notepad2, etc. Some people use dreamweaver, emacs, notepad, etc. At the end it all matters on your taste.
Good luck!