SyntaxHighlighter/Themes/Django
From Alex Gorbatchev
SyntaxHighlighter is open source and needs your donations. Please download and follow @syntaxhighlight on Twitter.
This feature requires version 2.0 or higher.
[edit] 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.
- shThemeDefault.css
- shThemeDjango.css
- shThemeEmacs.css
- shThemeFadeToGrey.css
- shThemeMidnight.css
- shThemeRDark.css
[edit] Django theme
<link type="text/css" rel="Stylesheet" href="/styles/shThemeDjango.css"/>
[edit] Example
/***********************************
** Multiline block comments
**********************************/
$stringWithUrl = "http://alexgorbatchev.com";
$stringWithUrl = 'http://alexgorbatchev.com';
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);
}
}