Login   Register  
PHP Classes
elePHPant
Icontem

PHP color

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of hazem ali  >  PHP color  >  Download .tar.gz .zip  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP color
Base name: phpcolor
Description: Format PHP code as colored HTML
Related classes: , , , , , , ,
Version: 1.0
PHP version: 5.0
License: Freeware
All time users: 785 users
All time rank: 3566
Week users: 0 users
Week rank: 2391
 

  Author  
Picture of hazem ali
Name: hazem ali <e-mail contact>
Packages: 1 Browse all classes by hazem ali Browse all classes by
Country: Egypt Egypt - PHP jobs in Egypt
Age: 27
All time rank: 211517 in Egypt Egypt
Week rank: 2217 Down23 in Egypt Egypt Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
This class can be used to format PHP code as colored HTML independent of the PHP code version.

It takes a string of PHP code and reformats it by adding HTML tags that can render the PHP constructs using different colors.

The PHP code text reformatting uses only regular expression replacement.

  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Files folder image Screenshots  
screenshot
File Role Description
Accessible without login Image file screenshot Screen screenshot


  Innovation Award  
PHP Programming Innovation award nominee
August 2008
Number 2

Prize: One book of choice from Manning
PHP provides built-in support to display PHP code with highlighted syntax.

However, if you want to highlight code for PHP 5 or later using PHP 4, it may not work, as the highlighting functions may fail because PHP 5 syntax is invalid under PHP 4.

This class provides an alternative solution based on replacing code with syntax highlighting tags using PHP version independent regular expressions.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (87.5%)
Good (81.2%)
-
Good (87.5%)
-
-
Sufficient (60.6%)
777
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example test
Plain text file phpcolor.php Class class source

Download all files: phpcolor.tar.gz phpcolor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.