NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin plogeshi

Plugin plogeshi

From LifeType Wiki


Name: plogeshi

Latest version: 20070226

Download link: http://prdownloads.sourceforge.net/lifetype/1.2_plogeshi.zip?download

License: GPL

Author: Rodrigo Perez

[edit] Description

This plugin allows to color syntax using GeSHi, which is a generic syntax highligher for PHP. The version of GeSHi included with this plugin is 1.0.6 wich has support for the following languages: Actionscript, ADA, Apache Log, ASM, ASP ,Bash, C, C for Macs, C#, C++, CAD DCL, CadLisp, CSS, Delphi, HTML, Java, Javascript, Lisp, Lua, Microprocessor ASM, NSIS, Objective C, OpenOffice BASIC, Oracle 8 SQL, Pascal, Perl, PHP, Python, Q(uick)BASIC, Smarty, SQL, VB.NET , Visual BASIC, Visual Fox Pro, XML.


[edit] Configuration

In order to use the plugin, use the following mark-up anywhere in your post:

<code php>
 // some php code
 function stupid_function()
 {
  echo "hello, world!";
 }
 // more php code
</code>

You should replace "php" in the above example with the right language identifier.

The formatted code is not saved to the database but instead, it is dynamically formatted every time it needs to be shown. This adds a slight processing overhead but keeping pLog's caching features enabled will help to mitigate this overhead.

[edit] Notes

If you want upgrage the version of GeSHi included with the plugin, download a new version of geshi and replace the files in folder plugins/plogeshi/inc.