6

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?

2
  • What specific features would an online editor for a custom DSL have to have? Commented Jan 25, 2010 at 21:21
  • oh, and reasonably simple.... I'm imagining a "hey, I used X, was pretty simple to use, just did blah and was done" :-) I'm googling around and theres lots of weird and obscure ones out there, I'm really looking to shortcut having to try lots out. Commented Jan 25, 2010 at 21:40

4 Answers 4

2

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

Sign up to request clarification or add additional context in comments.

Comments

2

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.

Comments

1

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.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.