Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser based IDE - Textarea with code completion available?

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

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

like image 982
vdboor Avatar asked Jan 14 '11 15:01

vdboor


2 Answers

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.

like image 75
Elian Ebbing Avatar answered Oct 13 '22 22:10

Elian Ebbing


CodeMirror has ability to support autocompletion

  • JS example: http://codemirror.net/demo/complete.html
  • XML example http://codemirror.net/demo/xmlcomplete.html
like image 39
Eran Medan Avatar answered Oct 13 '22 23:10

Eran Medan