invinc4u
invinc4u

Reputation: 1185

How to create a web editor for a new language?

I have developed a new domain-specific language (DSL) using Javacc parser generator. Now, I want to create a rich web editor for this language (using Play framework and Twitter bootstrap), so that it can be easily used by everyone. I am looking to implement some cool features like auto-complete, code formatting, syntax highlighting etc. Can anyone guide me on the general approach or any standard algorithms for implementing these features ? Are you aware of any open-source implementations that I can glance through to get an overall idea ?

Thanks.

Upvotes: 0

Views: 347

Answers (1)

Gelin Luo
Gelin Luo

Reputation: 14373

Try codemirror. Check here to see how to create an new module (for your DSL) for codemirror

Upvotes: 1

Related Questions