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

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

  

目录

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

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

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

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

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

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

    }

    function endtag(startOfLine) {

        return function(type) {

            if (type == "selfcloseTag" ||

                (type == "endTag" && Kludges.autoSelfClosers.hasOwnProperty(curState.tagName.toLowerCase())))

                return cont();

            if (type == "endTag") {pushContext(curState.tagName, startOfLine); return cont();}

            return cont();

        };

}

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

    function endclosetag(err) {

        return function(type) {

            if (err) setStyle = "error";

            if (type == "endTag") { popContext(); return cont(); }

            setStyle = "error";

            return cont(arguments.callee);

        }

    }

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

    function attributes(type) {

        if (type == "word") {setStyle = "attribute"; return cont(attributes);}

        if (type == "equals") return cont(attvalue, attributes);

        if (type == "string") {setStyle = "error"; return cont(attributes);}

        return pass();

}

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

    function attvalue(type) {

        if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}

        if (type == "string") return cont(attvaluemaybe);

        return pass();

    }

    function attvaluemaybe(type) {

        if (type == "string") return cont(attvaluemaybe);

        else return pass();

    }

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

    return {

        startState: function() {

            return {tokenize: inText, cc: [], indented: 0, startOfLine: true, tagName: null, context: null};

        },

        token: function(stream, state) {

            if (stream.sol()) {

                state.startOfLine = true;

                state.indented = stream.indentation();

            }

            if (stream.eatSpace()) return null;

            setStyle = type = tagName = null;

            var style = state.tokenize(stream, state);

            state.type = type;

            if ((style || type) && style != "comment") {

                curState = state;

                while (true) {

                    var comb = state.cc.pop() || element;

                    if (comb(type || style)) break;

                }

            }

            state.startOfLine = false;

            return setStyle || style;

        },

        indent: function(state, textAfter, fullLine) {

            var context = state.context;

            if ((state.tokenize != inTag && state.tokenize != inText) ||

                context && context.noIndent)

                return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0;

            if (alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0;

            if (context && /^<\//.test(textAfter))

                context = context.prev;

            while (context && !context.startOfLine)

                context = context.prev;

            if (context) return context.indent + indentUnit;

            else return 0;

        },

相关推荐

  1. 考试管理系统-MyExamTest----codemirror63

    2024-01-09 09:52:05       53 阅读
  2. 考试管理系统-MyExamTest----codemirror62

    2024-01-09 09:52:05       50 阅读
  3. 考试管理系统-MyExamTest----codemirror68

    2024-01-09 09:52:05       46 阅读
  4. 考试管理系统-MyExamTest----codemirror(45)

    2024-01-09 09:52:05       46 阅读
  5. 考试管理系统-MyExamTest----codemirror(47)

    2024-01-09 09:52:05       52 阅读
  6. 考试管理系统-MyExamTest----codemirror(48)

    2024-01-09 09:52:05       39 阅读
  7. 考试管理系统-MyExamTest----codemirror(51)

    2024-01-09 09:52:05       52 阅读
  8. 考试管理系统-MyExamTest----codemirror(57)

    2024-01-09 09:52:05       48 阅读
  9. 考试管理系统-MyExamTest----codemirror(59)

    2024-01-09 09:52:05       49 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-09 09:52:05       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-09 09:52:05       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-09 09:52:05       87 阅读
  4. Python语言-面向对象

    2024-01-09 09:52:05       96 阅读

热门阅读

  1. 机器学习 -决策树的案例

    2024-01-09 09:52:05       65 阅读
  2. how2heap-2.23-15-house_of_einherjar

    2024-01-09 09:52:05       67 阅读
  3. 记一次线上报错 GList AddChildAt NullReferenceException

    2024-01-09 09:52:05       46 阅读
  4. 知识笔记(七十四)———链式语句中field用法

    2024-01-09 09:52:05       62 阅读
  5. 解决神经网络过拟合的策略有哪些?

    2024-01-09 09:52:05       63 阅读
  6. C#中怎么将int类型string类型

    2024-01-09 09:52:05       41 阅读
  7. c++跨平台ui

    2024-01-09 09:52:05       59 阅读
  8. 引领创新的软件开发和新技术实践

    2024-01-09 09:52:05       55 阅读