PHP Classes
Icontem

Class: GeSHi


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nigel McNie  >  GeSHi  >  Download  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: GeSHi Support forum
Base name: geshi
Description: Highlight syntax of source code of many languages
Related top rated classes: , , ,
Version: -
Required PHP version: 4.1.0
License: GNU General Public License (GPL)
All time users: 1958 users
All time rank: 1356
Week users: 2 users
Week rank: 2996
 
  Author   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Trackback   Applications   Related links   Files Files  

Author

Picture of Nigel McNie
Name: Nigel McNie <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: New Zealand New Zealand - PHP jobs in New Zealand
Home page: http://qbnz.com/highlighter
Age: 23
All time rank: 991
Week rank: 1666

Innovation Award

PHP Programming Innovation award nominee
July 2004
Number 2
Syntax highlighting maybe an useful for sites that need to present source code, as it makes source code more readable and easier to understand.

PHP comes with built-in functions that can highlight the syntax of PHP code. This is useful if you just need to present source code in PHP.

This class provides a more generic solution t highlight the syntax of source code of many languages.

Furthermore, if you need to highlight the syntax of source code of a language that is not supported, you can create a new language configuration script and extend the utility of this class to suite your needs.

Manuel Lemos

Groups

Group folder image HTML HTML generation and processing View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

Detailed description

GeSHi is a Generic Syntax Highlighter for PHP. The user inputs the source to be highlighted and a language to highlight it in, and GeSHi returns the source code, highlighted and formatted for the web.

It includes features for increasing the speed of highlighting, changing how the source is displayed and decreasing the amount of HTML source outputted for speed over slower connections.

GeSHi features also include:

* The ability to check for keywords in source code in either a case sensitive or non-case sensitive manner (for example, Java will only accept classes with TheCorrectCapitalisation, while in PHP it doesn't matter)
* The ability to auto-caps/auto-noncaps keywords in the source (particularly for SQL and older BASIC dialects)
* The ability to change the style of almost any aspect of the source on the fly, or even choose whether some parts of the source (for example, strings) are highlighted at all. The use of CSS means that the source can take on many aspects - rather than those provided by deprecated HTML elements such as <font>, <b> etc.
* The ability to use CSS classes to massively reduce the amount of outputted code.
* XHTML compliant output.
* Simple adding and removing languages.
* Function to URL conversion so functions can be linked to API documentation
* Line numbering, context highlighting and much, much more!

GeSHi requires PHP 4.1.0 or better. It requires no extra PHP extensions.

Freshmeat project

GeSHi
Project record: geshi
Popularity score: 465.49
Vitality score: 24.9

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Perfect (100.0%)
Good (95.0%)
Good (91.7%)
-
-
-
Sufficient (68.7%)
224
Month:
Not yet rated by the users

Trackback links

Link Description
PHP Class - Geshi GeSHi is a Generic Syntax Highlighter for PHP and many other languages...

Applications that use this class

Link Description
gtk.php.net Manual The GTK PHP project uses GeSHi for highlighting the online manual
DokuWiki Wiki software that uses GeSHi
phpCVSView A CVS repository viewer written in PHP
Unclassified Newsboard An easy to use, standards compliant forum/newsboard software
Drupal GeSHi Filter Codefilter for Drupal to provide GeSHi support
Mambo The Mambo CMS, a popular CMS/Portal, uses GeSHi
MediaWiki A popular Wiki software
PHP-fusion PHP-fusion has a MOD for syntax highlighting that uses GeSHi
iG:Syntax Hiliter Syntax Highlighting plugin for WordPress
Serendipity Blogging system
SQLm A postgres SQL Abstraction Layer and Query Analyser
Firewiki A wiki system that uses GeSHi
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
GeSHi Homepage The home page of GeSHi, for the latest downloads and news
csourcesearch.net Search millions of lines of C code and resources
GeSHi @ freshmeat GeSHi's homepage at freshmeat.net
php.xwiki.de A PHP reference site using MediaWiki and GeSHi

Files

File Role Description
Plain text file geshi.php Class The GeSHi class
Files folder image contrib
  Plain text file cssgen.php Aux. CSS Generator
  Plain text file example.php Example Example script
Files folder image docs
  HTML file geshi-doc.html Doc. Documentation
Files folder image geshi
  Plain text file actionscript.php Conf. Actionscript
  Plain text file ada.php Conf. Ada
  Plain text file apache.php Conf. Apache
  Plain text file applescript.php Conf. Applescript
  Plain text file asm.php Conf. ASM
  Plain text file asp.php Conf. ASP
  Plain text file autoit.php Conf. AutoIT
  Plain text file bash.php Conf. Bash
  Plain text file blitzbasic.php Conf. Blitzbasic
  Plain text file c.php Conf. C
  Plain text file caddcl.php Conf. CADDCL
  Plain text file CHANGES Doc. List of changes
  Plain text file cpp.php Conf. C++
  Plain text file css-gen.cfg Data Placeholder for contrib
  Plain text file css.php Conf. CSS
  Plain text file html4strict.php Conf. HTML
  Plain text file php.php Conf. PHP
  Plain text file README Doc. Readme
  Plain text file visualfoxpro.php Conf. Visual Fox Pro
  Plain text file winbatch.php Conf. Winbatch
  Plain text file xml.php Conf. XML
Download all files: geshi.tar.gz geshi.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products