tags:

views:

74

answers:

3

I'm looking for a nice / customisable editor to put on a web page for editing scripts for a custom DSL. Ideally with syntax highlighting (and intellisense would be great! )

Anyone know of anything suitable?

A: 

For syntax highlighting, look at EditArea. Intellisense could be written as a plugin.

Shanti
+1  A: 

You should take a look at Bespin. You have a good description here: http:// mozillalabs.com/bespin/2010/01/15/bespin-embedded-0-6-released-now-in-two-great-flavors/

It has a full support for being embedded. See the embedding doc : https:// bespin.mozilla.com/docs/embedding/index.html

You can write a custom syntax highlighting plugin pretty easily if needed. You can probably fork and adapt one of the built-in syntax highlighters. The editor itself and its plugins are written in Javascript.

The project is aimed at being a complete web-based & collaborative code editor, so intellisense-like features should make their way in soon if they're no alreay present.

Mathieu Ravaux
A: 

maybe you should have a look at codemirror:

http://codemirror.net/

it's "just" an editor-component and you will probably have to put some work into it. but it's easy to enhance and integrate it.

harald