var createEditor;
var author;

function injectCreate(id) {
    $("#" + id).load("create/html/createHTML", function() {
        injectCreateEditor();
		
		// Generate a random number from 1 to 10000
        author = Math.floor((Math.random() * 10000) + 1);
    });
}

function injectCreateEditor() {
    Range = ace.require('ace/range').Range;

    createEditor = ace.edit("editor");
    createEditor.setTheme("ace/theme/github");
    createEditor.getSession().setMode("ace/mode/");

    createEditor.getSession().on('change', removeAllVCMarkers);
    createEditor.setFontSize(18);
}

var createEditor;
var author;

function injectCreate(id) {
    $("#" + id).load("create/html/createHTML", function() {
        injectCreateEditor();
		
		// Generate a random number from 1 to 10000
        author = Math.floor((Math.random() * 10000) + 1);
    });
}

function injectCreateEditor() {
    Range = ace.require('ace/range').Range;

    createEditor = ace.edit("editor");
    createEditor.setTheme("ace/theme/github");
    createEditor.getSession().setMode("javascript/mode-resolve");

    createEditor.getSession().on('change', removeAllVCMarkers);
    createEditor.setFontSize(18);
}

Set the editor to RESOLVE mode
Set the editor to RESOLVE mode
