-凯发官网注册

/** * syntaxhighlighter * http://alexgorbatchev.com/syntaxhighlighter * * syntaxhighlighter is donationware. if you are using it, please donate. * http://alexgorbatchev.com/syntaxhighlighter/donate.html * * @version * 3.0.83 (july 02 2010) * * @凯发官网注册 copyright * 凯发官网注册 copyright (c) 2004-2010 alex gorbatchev. * * @license * dual licensed under the mit and gpl licenses. */ ;(function() { // commonjs typeof(require) != 'undefined' ? syntaxhighlighter = require('shcore').syntaxhighlighter : null; function brush() { function process(match, regexinfo) { var constructor = syntaxhighlighter.match, code = match[0], tag = new xregexp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.] )', 'xg').exec(code), result = [] ; if (match.attributes != null) { var attributes, regex = new xregexp('(? [\\w:\\-\\.] )' '\\s*=\\s*' '(? ".*?"|\'.*?\'|\\w )', 'xg'); while ((attributes = regex.exec(code)) != null) { result.push(new constructor(attributes.name, match.index attributes.index, 'color1')); result.push(new constructor(attributes.value, match.index attributes.index attributes[0].indexof(attributes.value), 'string')); } } if (tag != null) result.push( new constructor(tag.name, match.index tag[0].indexof(tag.name), 'keyword') ); return result; } this.regexlist = [ { regex: new xregexp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // { regex: syntaxhighlighter.regexlib.xmlcomments, css: 'comments' }, // { regex: new xregexp('(<|<)[\\s\\/\\?]*(\\w )(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } ]; }; brush.prototype = new syntaxhighlighter.highlighter(); brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; syntaxhighlighter.brushes.xml = brush; // commonjs typeof(exports) != 'undefined' ? exports.brush = brush : null; })();