dp.SyntaxHighlighter 1.4.1 Tests and Samples (
dreamprojections.com/syntaxhighlighter
)
PHP
Languages:
C#
CSS
C++
Delphi
Java
JavaScript
PHP
Python
Ruby
SQL
Visual Basic
XML / HTML
Features:
Smart tabs
First line
Expand code
Show columns
No gutter
/*********************************** ** Multiline block comments **********************************/ $stringWithUrl = "http://blog.dreamprojections.com"; $stringWithUrl = 'http://www.dreamprojections.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); } }