2,733
edits
Red Leader (talk | contribs) m (Page has gone weird -> good excuse to remove space XD) |
Red Leader (talk | contribs) m (Fix wiki (but it will still format correctly in use) and change something I forgot.) |
||
| Line 100: | Line 100: | ||
// Define constants | // Define constants | ||
var DEBUG = | var DEBUG = false; | ||
var CONFIG = { | var CONFIG = { | ||
| Line 390: | Line 390: | ||
} | } | ||
catch(err){ | catch(err){ | ||
msg = msg.replace(/<\/syntaxhighligh.>/g, "</syntaxhighligh$1"); | |||
METHODS.msgbox(msg); | METHODS.msgbox(msg); | ||
} | } | ||
| Line 515: | Line 516: | ||
code = code.replace(/<br\/?>/g, "\n"); | code = code.replace(/<br\/?>/g, "\n"); | ||
return '<syntaxhighlight lang="' + lang + '" enclose="div">\n' + code + '\n | return '<syntaxhighlight lang="' + lang + '" enclose="div">\n' + code + '\n</syntaxhighlight>'; | ||
} | } | ||