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

javascript - Browser based IDE - Textarea with code completion available? - Stack Overflow

programmeradmin5浏览0评论

Recently I discovered it's possible to have syntax-highlighting in a <textarea> using JavaScript.

Are there Open Source libraries which also support auto pletion? I'd like to make a simple online editor for HTML/CSS templates.

Preferably, the pletion is can be extended, so I can add custom rules.

Recently I discovered it's possible to have syntax-highlighting in a <textarea> using JavaScript.

Are there Open Source libraries which also support auto pletion? I'd like to make a simple online editor for HTML/CSS templates.

Preferably, the pletion is can be extended, so I can add custom rules.

Share Improve this question asked Jan 14, 2011 at 15:46 vdboorvdboor 22.5k14 gold badges86 silver badges98 bronze badges 4
  • Sounds like a cool idea, but not very practical yet. I guess you could utilize HTML5 to cache most of it for off-line use. – xil3 Commented Jan 14, 2011 at 15:50
  • @xil3: what would I have to cache offline? The code pletion definitions? They could be inlined as JSON – vdboor Commented Jan 21, 2011 at 16:35
  • so someone would always need an internet connection to use the IDE? Even if the code pletion definitions were in-line, that would need to be cached somewhere in order to access this off-line. – xil3 Commented Jan 21, 2011 at 16:47
  • @xil3, ah I see. yes HTML5 makes sense in such cases – vdboor Commented Jan 22, 2011 at 0:18
Add a ment  | 

3 Answers 3

Reset to default 6

You should check this wikipedia page on javascript based code editors. It lists the MDK-Editor as one that supports auto-pletion for html, css and javascript. You can see a demo here.

CodeMirror has ability to support autopletion

  • JS example: http://codemirror/demo/plete.html
  • XML example http://codemirror/demo/xmlplete.html

Mozilla Labs has Skywriter (This project is no longer active) which is a browser based IDE. I don't know if it has code pletion (I couldn't find it) though.

发布评论

评论列表(0)

  1. 暂无评论