@wphelpcenter Mon-Fri - 8am-6pm Pacific

WordPress HelpCenter

Log in
Plugin Help, Support and Customization

Javascript Syntax Highlighter Support


Installation Instructions

  1. Extract plugin into /wp-content/plugins directory.
  2. Activate the plugin.
  3. Specify the code snippets in your blog post following the Usage Directions.

Here is an example to produce PHP syntax highlighting once the plugin is activated:

 
/***********************************
 ** 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);
    }
}

Help, Support & Customization for

Javascript Syntax Highlighter

Call now: 720-288-0398

Using WordPress HelpCenter for help with Javascript Syntax Highlighter supports (the plugin developer).

Plugin Info

Download

Current Version:
2.1.364
Last Updated:
2010-4-6
Minimum WordPress Version:
2.0
Plugin Author:
Alexander Wagner

Plugin Homepage