笙默考试管理系统-MyExamTest----codemirror(60)

笙默考试管理系统-MyExamTest----codemirror(60

  

目录

一、 笙默考试管理系统-MyExamTest----codemirror

二、 笙默考试管理系统-MyExamTest----codemirror

三、 笙默考试管理系统-MyExamTest----codemirror

四、 笙默考试管理系统-MyExamTest----codemirror

五、 笙默考试管理系统-MyExamTest----codemirror

  • 笙默考试管理系统-MyExamTest----codemirror

        }

        result.push(string.slice(pos));

        return result;

    } : function(string){return string.split(/\r?\n/);};

    CodeMirror.splitLines = splitLines;

  • 笙默考试管理系统-MyExamTest----codemirror

    var hasSelection = window.getSelection ? function(te) {

        try { return te.selectionStart != te.selectionEnd; }

        catch(e) { return false; }

    } : function(te) {

        try {var range = te.ownerDocument.selection.createRange();}

        catch(e) {}

        if (!range || range.parentElement() != te) return false;

  • 笙默考试管理系统-MyExamTest----codemirror

        return range.compareEndPoints("StartToEnd", range) != 0;

    };

  • 笙默考试管理系统-MyExamTest----codemirror

    CodeMirror.defineMode("null", function() {

        return {token: function(stream) {stream.skipToEnd();}};

    });

    CodeMirror.defineMIME("text/plain", "null");

    var keyNames = {3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",

        19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",

        36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",

        46: "Delete", 59: ";", 91: "Mod", 92: "Mod", 93: "Mod", 186: ";", 187: "=", 188: ",",

        189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'", 63276: "PageUp",

        63277: "PageDown", 63275: "End", 63273: "Home", 63234: "Left", 63232: "Up", 63235: "Right",

        63233: "Down", 63302: "Insert", 63272: "Delete"};

    CodeMirror.keyNames = keyNames;

    (function() {

  •     笙默考试管理系统-MyExamTest----codemirror

    // Number keys

        for (var i = 0; i < 10; i++) keyNames[i + 48] = String(i);

        // Alphabetic keys

        for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);

        // Function keys

        for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;

    })();

    return CodeMirror;

})();

CodeMirror.defineMode("xml", function(config, parserConfig) {

    var indentUnit = config.indentUnit;

    var Kludges = parserConfig.htmlMode ? {

        autoSelfClosers: {"br": true, "img": true, "hr": true, "link": true, "input": true,

            "meta": true, "col": true, "frame": true, "base": true, "area": true},

        doNotIndent: {"pre": true},

        allowUnquoted: true

    } : {autoSelfClosers: {}, doNotIndent: {}, allowUnquoted: false};

    var alignCDATA = parserConfig.alignCDATA;

    // Return variables for tokenizers

    var tagName, type;

你可能感兴趣的:(笙默考试管理系统,前端,javascript,服务器)