笙默考试管理系统-MyExamTest----codemirror(62)
??
目录
一、 笙默考试管理系统-MyExamTest----codemirror
二、 笙默考试管理系统-MyExamTest----codemirror
三、 笙默考试管理系统-MyExamTest----codemirror
四、 笙默考试管理系统-MyExamTest----codemirror
五、 笙默考试管理系统-MyExamTest----codemirror
?function inBlock(style, terminator) {
????????return function(stream, state) {
????????????while (!stream.eol()) {
????????????????if (stream.match(terminator)) {
????????????????????state.tokenize = inText;
????????????????????break;
????????????????}
????????????????stream.next();
????????????}
????????????return style;
????????};
????}
????function doctype(depth) {
????????return function(stream, state) {
????????????var ch;
????????????while ((ch = stream.next()) != null) {
????????????????if (ch == "<") {
????????????????????state.tokenize = doctype(depth + 1);
????????????????????return state.tokenize(stream, state);
????????????????} else if (ch == ">") {
????????????????????if (depth == 1) {
????????????????????????state.tokenize = inText;
????????????????????????break;
????????????????????} else {
????????????????????????state.tokenize = doctype(depth - 1);
????????????????????????return state.tokenize(stream, state);
????????????????????}
????????????????}
????????????}
????????????return "meta";
????????};
????}
????var curState, setStyle;
????function pass() {
????????for (var i = arguments.length - 1; i >= 0; i--) curState.cc.push(arguments[i]);
????}
????function cont() {
????????pass.apply(null, arguments);
????????return true;
????}
????function pushContext(tagName, startOfLine) {
????????var noIndent = Kludges.doNotIndent.hasOwnProperty(tagName) || (curState.context && curState.context.noIndent);
????????curState.context = {
????????????prev: curState.context,
????????????tagName: tagName,
????????????indent: curState.indented,
????????????startOfLine: startOfLine,
????????????noIndent: noIndent
????????};
????}
????function popContext() {
????????if (curState.context) curState.context = curState.context.prev;
????}
????function element(type) {
????????if (type == "openTag") {
????????????curState.tagName = tagName;
????????????return cont(attributes, endtag(curState.startOfLine));
????????} else if (type == "closeTag") {
????????????var err = false;
????????????if (curState.context) {
????????????????err = curState.context.tagName != tagName;
????????????} else {
????????????????err = true;
????????????}
????????????if (err) setStyle = "error";
????????????return cont(endclosetag(err));
????????}
????????return cont();