FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
Revert syntaxhighlight (breaks to page)
(date formatting + Chrome-specific box (more to come on that ;) ))
m (Revert syntaxhighlight (breaks to page))
Line 248: Line 248:
function phpBB_code2syntaxhighlight() {
function phpBB_code2syntaxhighlight() {
     return function(bbhtml) {
     return function(bbhtml) {
         return bbhtml.replace(/<dl.*?><dt>.*?<\/dt><dd><code>(.*?)<\/code><\/dd><\/dl>/g, "<syntaxhighlight>\n$1\n</syntaxhighlight>");
         return bbhtml.replace(/<dl.*?><dt>.*?<\/dt><dd><code>(.*?)<\/code><\/dd><\/dl>/g, "<tt>\n$1\n</tt>");
     };
     };
}
}

Navigation menu