Documentation

Codemirror

Type: Boolean, Object

Default: false

This setting allows you to connect Codemirror on the page for code highlighting when adding and editing the code block or in the source mode.

ArticleEditor('#entry', {
    codemirror: true
});

You can set Codemirror settings, like this:

ArticleEditor('#entry', {
    codemirror: {
        lineNumbers: true
    }
});

See a live example of how Codemirror works with Article.