FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
Fix wiki (but it will still format correctly in use) and change something I forgot.
m (Page has gone weird -> good excuse to remove space XD)
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 = true;
var DEBUG = false;


var CONFIG = {
var CONFIG = {
Line 390: Line 390:
     }
     }
     catch(err){
     catch(err){
        msg = msg.replace(/&lt;\/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</syntaxhighlight>';
     return '<syntaxhighlight lang="' + lang + '" enclose="div">\n' + code + '\n&lt;/syntaxhighlight>';
}
}


Navigation menu