Jkumar
Jkumar

Reputation: 61

How to write a new mode with hints for inhouse DSL in CodeMirror?

I'm trying to write an HTML editor using CodeMirror for some inhouse Domain Specific Language. I need help to write the mode and hints, where to start?

Is there any documentation other than the Codemirror.net website?

Upvotes: 1

Views: 479

Answers (1)

Marijn
Marijn

Reputation: 8929

You could look at some of the simple modes, such as mode/diff/diff.js and mode/properties/properties.js. And of course, read the manual.

[edit]: Good news, this just got a lot easier. See http://codemirror.net/demo/simplemode.html

Upvotes: 2

Related Questions