Geshi

So to integrate GeSHi with this site, I had to hack it slightly. Rather than change the actual geshi source, I chose to extend it with my own class.

span class="co2"># Always use CSS
		();
		('geshi');
 
		# Set the variables
// __construct
// set_caption
// set_overall_class
# Set the variables
" snippet"// Render
'</ol>'"</ol></div>"'</div>' : '') .
             "</div>""</ol></pre>"'</div>' : '') .
             "</pre>";
     }
	} // Footer
'')
	{
		# code...
	} // Caption
// Perhaps some checking might be added here later to check that
     //  data is a valid thing but maybe not
      = ;
     // Set strict mode if should be set
'STRICT_MODE_APPLIES'// Set permissions for all lexics to true
     // so they'll be highlighted by default
'KEYWORDS''KEYWORDS''COMMENT_SINGLE''COMMENTS''REGEXPS''REGEXPS'// Set default class for CSS
       = ;
     }
	} // load_language
 
} // Geshi2
Example 1 -- GeSHi2.php -- Select Code