GeSHi engine.
This plugin is based on Wordpress iG:Syntax Hiliter coded by Amit Gupta.
Version: 0.1 Beta
Author: Enrique Chavez aka Tmeister
Author URI: http://www.klr20mg.com
*/
/*******************************************************************
*
* DON'T EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
*
*******************************************************************/
/*******************************************************************
* Version of the Plugin
*******************************************************************/
define('IG_VERSION', "0.1");
/*******************************************************************
* Plugin File Name
*******************************************************************/
define('IG_FILE', "syntax_hilite.php");
/*******************************************************************
* Plaint Text Type
*******************************************************************/
define('IG_PLAIN_TEXT_TYPE', "inbox");
/*******************************************************************
* iGSyntaxHilite Object, autoFormat ON or OFF, code box id,
* igVersion, igPath
*******************************************************************/
global $igsh, $tOffAutoFmt, $cbId, $igBbPressVersion, $igsyntax_hiliter_path;
/*******************************************************************
* Set autoFormatOff as FALSE to enable auto formatting by default
*******************************************************************/
$tOffAutoFmt = false;
/*******************************************************************
* initialise the Code Box Id
*******************************************************************/
$cbId = 1;
/*******************************************************************
* Version of BBPRESS where the Debug was done
*******************************************************************/
$igBbPressVersion = "0.8.3.1" ;
/*******************************************************************
* Physical path to the directory where geshi directory resides,
* should end with a /
*******************************************************************/
$ig_geshipath = BBPATH."my-plugins/bbpress_syntax_hilite/";
/*******************************************************************
* URL to the plugin directory
*******************************************************************/
$igsyntax_hiliter_path = bb_get_option('uri')."my-plugins/bbpress_syntax_hilite";
/*******************************************************************
* Include plugin configuration
*******************************************************************/
require_once("{$ig_geshipath}syntax_hilite_config.php");
/*******************************************************************
* include the GeSHi Core
*******************************************************************/
require_once("{$ig_geshipath}geshi.php");
/*******************************************************************
* Start Class
*******************************************************************/
class iGSyntaxHilite {
/*******************************************************************
* Variable to store the path of the GeSHi Language Files
*******************************************************************/
var $ig_geshipath = null;
// Class Constructor
/**
* @return NOTHING
* @param $ig_geshipath
* @desc This is the Constructor of the Class & accepts the path of the language files directory
*/
function iGSyntaxHilite($ig_geshipath) {
$this->ig_geshipath = $ig_geshipath;
} // END CONSTRUCTOR iGSyntaxHilite
// Function for Prefixing the DIV around
/**
* @return Starting