开发者

Browser based IDE - Textarea with code completion available?

开发者 https://www.devze.com 2023-02-04 01:36 出处:网络
Recently I discovered it\'s possible to have syntax-highlighting in a <textarea> using JavaScript.

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

Are there Open Source libraries which also support auto completion? I'd like to make a simple online editor for HTML/CSS 开发者_JS百科templates.

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


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


CodeMirror has ability to support autocompletion

  • JS example: http://codemirror.net/demo/complete.html
  • XML example http://codemirror.net/demo/xmlcomplete.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 completion (I couldn't find it) though.

0

精彩评论

暂无评论...
验证码 换一张
取 消