SyntaxHighlighter 3.0.83

Fork Me On GitHub
whats new?
SyntaxHighlighter is an open source Java Script client side code syntax highlighter.
donate download installation autoloader configuration @syntaxhighlight

Midnight theme

<link type="text/css" rel="Stylesheet" href="/styles/shThemeMidnight.css"/>

Example

      	/***********************************
      	 ** Multiline block comments
      	 **********************************/
      
      	$stringWithUrl = "http://alexgorbatchev.com";
      	$stringWithUrl = 'hello world';
      	
      	ob_start("parseOutputBuffer");		// Start Code Buffering
      	session_start();
      	
      	function parseOutputBuffer($buf) {
      		global $portal_small_code, $portal_gzcompress;
      		global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
      
      		// cleaning out the code.
      		if($portal_small_code && !$portal_gzcompress) {
      			$buf = str_replace("	", "", $buf);
      			$buf = str_replace("\n", "", $buf);
      			$buf = str_replace(chr(13), "", $buf);
      		}
      	}
      

CSS Themes

SyntaxHighlighter 2.0 introduced custom CSS themes. This means that by switching out just one CSS file you can completely change the look and feel of the highlighted syntax. A small number of popular color themes are included with SyntaxHighlighter and you can easily make your own.

NameFile
DefaultshThemeDefault.css
DjangoshThemeDjango.css
EclipseshThemeEclipse.css
EmacsshThemeEmacs.css
Fade To GreyshThemeFadeToGrey.css
MidnightshThemeMidnight.css
RDarkshThemeRDark.css