function initialize_editor(jQueryObject) {
        
        var editorid = jQueryObject.attr("id").substr(9);
        var filename = jQueryObject.data("filename");
        var tab_type = jQueryObject.data("tab_type");
        var ext = jQueryObject.data("ext");
        var editor = ace.edit("instance_" + editorid);
        
        editor.setTheme("ace/theme/chrome");
        editor.setBehavioursEnabled(false);
        editor.commands.bindKeys({
            "ctrl-l" : null, "ctrl-n" : null, "ctrl-s" : null, "ctrl-t" : null, "ctrl-u" : null,
            "cmd-l" : null, "cmd-n" : null, "cmd-s" : null, "cmd-t" : null, "cmd-u" : null
        });
        
        editor.getSession().setTabSize(window.tab_size ? window.tab_size : 4);
        editor.getSession().setUseSoftTabs(tab_type.match(/space/) ? true : false);
        editor.getSession().setMode("ace/mode/" + ext);
        
        editor.getSession().on('change', function(e) {
            $("#tab_" + editorid).find("span.unsaved").text("*");
        });
        
        editor.focus();
    }
// Function for initializing editor instances.
Function for initializing editor instances.
Function for initializing editor instances .
function initialize_editor(jQueryObject) {
        var editorid = jQueryObject.attr("id").substr(9);
        var filename = jQueryObject.data("filename");
        var tab_type = jQueryObject.data("tab_type");
        var ext = jQueryObject.data("ext");
        var editor = ace.edit("instance_" + editorid);
        editor.setTheme("ace/theme/chrome");
        editor.setBehavioursEnabled(false);
        editor.commands.bindKeys({
            "ctrl-l" : null, "ctrl-n" : null, "ctrl-s" : null, "ctrl-t" : null, "ctrl-u" : null,
            "cmd-l" : null, "cmd-n" : null, "cmd-s" : null, "cmd-t" : null, "cmd-u" : null
        });
        editor.getSession().setTabSize(window.tab_size ? window.tab_size : 4);
        editor.getSession().setUseSoftTabs(tab_type.match(/space/) ? true : false);
        editor.getSession().setMode("ace/mode/" + ext);
        editor.getSession().on('change', function(e) {
            $("#tab_" + editorid).find("span.unsaved").text("*");
        });
        editor.focus();
    }
function initialize_editor ( jQueryObject ) { var editorid = jQueryObject . attr ( "id" ) . substr ( 9 ) ; var filename = jQueryObject . data ( "filename" ) ; var tab_type = jQueryObject . data ( "tab_type" ) ; var ext = jQueryObject . data ( "ext" ) ; var editor = ace . edit ( "instance_" + editorid ) ; editor . setTheme ( "ace/theme/chrome" ) ; editor . setBehavioursEnabled ( false ) ; editor . commands . bindKeys ( { "ctrl-l" : null , "ctrl-n" : null , "ctrl-s" : null , "ctrl-t" : null , "ctrl-u" : null , "cmd-l" : null , "cmd-n" : null , "cmd-s" : null , "cmd-t" : null , "cmd-u" : null } ) ; editor . getSession ( ) . setTabSize ( window . tab_size ? window . tab_size : 4 ) ; editor . getSession ( ) . setUseSoftTabs ( tab_type . match ( / space / ) ? true : false ) ; editor . getSession ( ) . setMode ( "ace/mode/" + ext ) ; editor . getSession ( ) . on ( 'change' , function ( e ) { $ ( "#tab_" + editorid ) . find ( "span.unsaved" ) . text ( "*" ) ; } ) ; editor . focus ( ) ; }
Function for initializing editor instances.
Function for initializing editor instances .