SyntaxHighlight GeSHi
From Wikipedia
Normal pre, no extension
if (blah) { // stuff }
Basic example (pre mode):
if (blah) { // stuff }
Div mode:
if (blah) {
// stuff
}
// stuff
}
Light on black may be easier to read than light on white - dark on light may be better.
if (blah) {
// stuff
}
// stuff
}
Line numbered (forces div mode):
-
if (blah) {
-
// stuff
-
}
Line numbered with offset:
-
if (blah) {
-
// stuff
-
}
Non-strict:
$x = 'y'; <?php $x = 'y'; ?>
Strict:
$x = 'y'; <?php $x = 'y'; ?>
INSERT INTO arsearch2 (Findindex,Word,Src,session) SELECT STRAIGHT_JOIN ind0.Findindex,ind0.Subject,ind0.Src,25765 FROM arindex AS ind0 ,arindex AS ind1,arindex AS ind2 WHERE ind0.Subject='WIRING' AND ind1.Subject='DIAGRAM' AND ind2.Subject='LUCAS' AND ind0.FindIndex=ind1.FindIndex AND ind0.FindIndex=ind2.FindIndex AND ind0.Src=ind1.Src AND ind0.Src=ind2.Src
Long lines, yuck.
try: self._site = getSite(otherlang, familyName) except ValueError: raise NoPage('%s is not a local page on %s, and the %s family is not supported by PyWikipediaBot!' % (title, self.site(), familyName ))