<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.
| Name | File |
|---|---|
| Default | shThemeDefault.css |
| Django | shThemeDjango.css |
| Eclipse | shThemeEclipse.css |
| Emacs | shThemeEmacs.css |
| Fade To Grey | shThemeFadeToGrey.css |
| Midnight | shThemeMidnight.css |
| RDark | shThemeRDark.css |