Keith Nicholas
Keith Nicholas

Reputation: 44288

What is a good javascript editor for editing custom DSL code?

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?

Upvotes: 6

Views: 1945

Answers (4)

PabloFM
PabloFM

Reputation: 11

The successor of the Mozilla Skywriter (Bespin) project is ACE: http://ace.ajax.org/

Upvotes: 1

aurora
aurora

Reputation: 9627

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.

Upvotes: 2

Mathieu Ravaux
Mathieu Ravaux

Reputation: 353

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.

Upvotes: 1

Shanti
Shanti

Reputation: 1238

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

Upvotes: 2

Related Questions