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
3 Answers
Reset to default 6You 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.