##// END OF EJS Templates
Backport PR #2546: use 4 Pythons to build 4 Windows installers...
Backport PR #2546: use 4 Pythons to build 4 Windows installers See [stdlib docs](http://docs.python.org/2/distutils/builtdist.html#cross-compiling-on-windows) for why this has to be. I don't know a better way than hard-coding the paths to four Pythons, since there is no natural way to have all of these available on your PATH. This script (with PROPER and FIXED additions) is how I built/uploaded the two fixed installers. closes #2531

File last commit:

r5970:b6bb1663
r9837:c4e7f5b3
Show More
runmode.js
27 lines | 968 B | application/javascript | JavascriptLexer
CodeMirror.runMode = function(string, modespec, callback) {
var mode = CodeMirror.getMode({indentUnit: 2}, modespec);
var isNode = callback.nodeType == 1;
if (isNode) {
var node = callback, accum = [];
callback = function(string, style) {
if (string == "\n")
accum.push("<br>");
else if (style)
accum.push("<span class=\"cm-" + CodeMirror.htmlEscape(style) + "\">" + CodeMirror.htmlEscape(string) + "</span>");
else
accum.push(CodeMirror.htmlEscape(string));
}
}
var lines = CodeMirror.splitLines(string), state = CodeMirror.startState(mode);
for (var i = 0, e = lines.length; i < e; ++i) {
if (i) callback("\n");
var stream = new CodeMirror.StringStream(lines[i]);
while (!stream.eol()) {
var style = mode.token(stream, state);
callback(stream.current(), style, i, stream.start);
stream.start = stream.pos;
}
}
if (isNode)
node.innerHTML = accum.join("");
};