* @version $Revision$ * @package liberty * @subpackage plugins_data * @copyright Copyright (c) 2004, bitweaver.org * All Rights Reserved. See below for details and a complete list of authors. * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. */ /****************** * Initialization * ******************/ global $gLibertySystem; define( 'PLUGIN_GUID_DATAGESHIDATA','datageshidata' ); global $gLibertySystem; $pluginParams = [ 'tag' => 'GESHIDATA', 'auto_activate' => false, 'requires_pair' => false, 'load_function' => '\data_GeshiData', 'title' => 'GeshiData', 'help_page' => 'DataPluginGeshiData', 'description' => KernelTools::tra("This plugin is a documentation tool for the bitweaver site. It will display some of information defined in the GeSHi (Generic Syntax Highlighter) package."), 'help_function' => '\data_help_GeshiData', 'syntax' => "{GESHIDATA doall= lang= info= }", 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAGESHIDATA, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAGESHIDATA ); /***************** * Help Function * *****************/ function data_help_GeshiData() { $help = '
| '.KernelTools::tra( "Key" ).' | ' .''.KernelTools::tra( "Type" ).' | ' .''.KernelTools::tra( "Comments" ).' | ' .'
|---|---|---|
| doall | ' .''.KernelTools::tra( "boolean").' '.KernelTools::tra("(optional)").' | '
.''.KernelTools::tra( "Provided to display the information for Every Language.")
.' '.KernelTools::tra( "Default =").' False '.KernelTools::tra( "- So only specific information is Displayed.") .' | '
.'
| lang | ' .''.KernelTools::tra( "string").' '.KernelTools::tra("(optional)").' | '
.''.KernelTools::tra( "Specifies the Language to gather the information from. Possible values are:")
.' ActionScript / Ada / Apache Log File=Apache / ASM (NASM based)= Asm / ASP / Bash / C ' .'/ C for Macs=C_Mac / AutoCAD DCL=CadDcl / AutoCAD LISP=CadLisp / C++=Cpp / C#=CSharp / CSS / D ' .'/ Delphi / Diff Output=Diff / HTML (4.0.1)=Html4Strict / Java / JavaScript / Lisp / Lua / MatLab ' .'/ MpAsm / NullSoft Installer=Nsis / Objective C=ObjC / OpenOffice.org Basic=OoBas / Oracle8 ' .'/ Pascal / Perl / Php / Php-Brief / Python / QuickBasic=QBasic / Smarty / SQL / VisualBasic=Vb ' .'/ VB.NET=VbNet / VHDL / VisualFoxPro / XML. ' .' '.KernelTools::tra("The Default = ").' PHP ' .' | '
.'
| info | ' .''.KernelTools::tra("key-word").' '.KernelTools::tra("(optional)").' | '
.''.KernelTools::tra( "Determines the information to be displayed. The Key-words are:")
.' Comment / Comment1 / Comment2' .' '.KernelTools::tra("Note:").' '.KernelTools::tra( "With the").' Comment ' .KernelTools::tra("Key-words - the difference is").' Comment '.KernelTools::tra("returns the Line Comment Character / while") .' Comment1 '.KernelTools::tra("returns the starting Block Comment Character and") .' Comment2 '.KernelTools::tra("returns the ending Block Comment Character.") .' '.KernelTools::tra( "There is No Default for this parameter.") .' | '
.'
| '; $ret .= (count($datArr)>0) ? $datArr[key($datArr)] : 'None'; $ret .= ' | '; $datArr = $obj->language_data['COMMENT_MULTI']; $ret .= ''; if ($i != 'html4strict') $ret .= (count($datArr)>0) ? key($datArr) : 'None'; else $ret .= '<!--'; $ret .= ' | '; $ret .= ''; if ($i != 'html4strict') $ret .= (count($datArr)>0) ? $datArr[key($datArr)] : 'None'; else $ret .= '-->'; $ret .= ' | '; $ret .= '