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

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

目录

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

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

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

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

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

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

 

 function css(stream, state) {

        if (stream.match(/^<\/\s*style\s*>/i, false)) {

            state.token = html;

            state.localState = null;

            state.mode = "html";

            return html(stream, state);

        }

        return maybeBackup(stream, /<\/\s*style\s*>/,

            cssMode.token(stream, state.localState));

    }

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

    return {

        startState: function() {

            var state = htmlMode.startState();

            return {token: html, localState: null, mode: "html", htmlState: state};

        },

        copyState: function(state) {

            if (state.localState)

                var local = CodeMirror.copyState(state.token == css ? cssMode : jsMode, state.localState);

            return {token: state.token, localState: local, mode: state.mode,

                htmlState: CodeMirror.copyState(htmlMode, state.htmlState)};

        },

        token: function(stream, state) {

            return state.token(stream, state);

        },

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

        indent: function(state, textAfter) {

            if (state.token == html || /^\s*<\//.test(textAfter))

                return htmlMode.indent(state.htmlState, textAfter);

            else if (state.token == javascript)

                return jsMode.indent(state.localState, textAfter);

            Else

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

                return cssMode.indent(state.localState, textAfter);

        },

        compareStates: function(a, b) {

            return htmlMode.compareStates(a.htmlState, b.htmlState);

        },

        electricChars: "/{}:"

    }

});

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

CodeMirror.defineMIME("text/html", "htmlmixed");

你可能感兴趣的:(笙默考试管理系统,java)