SyntaxHighlight GeSHi

From Wikipedia

Normal pre, no extension

if (blah) {
   // stuff
}

Basic example (pre mode):

if (blah) {
   // stuff
}

Div mode:

if (blah) {
   // stuff
}

Light on black may be easier to read than light on white - dark on light may be better.

if (blah) {
   // stuff
}

Line numbered (forces div mode):

  1. if (blah) {
  2.    // stuff
  3. }

Line numbered with offset:

  1. if (blah) {
  2.    // stuff
  3. }

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
))
Navigation
generic heading