PHP Classes

Source code highlighting: Highlight code in several languages

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 934 All time: 3,835 This week: 47Up
Version License Categories
highlighter 1.0Artistic LicenseHTML, PHP 5, Text processing
Description 

Author

This class can be used to highlight source code in several languages, as well some other text formats.

It can highlight text strings or files. It generates XHTML as highlighted output.

Currently it supports the following languages and text formats: C++, CSS, DIFF, DTD, HTML, Java, JavaScript, MySQL, Perl, PHP, Python, Ruby, SQL and XML.

The class requires PEAR Text_Highlighter.

Picture of Stephan Spies
Name: Stephan Spies <contact>
Classes: 1 package by
Country: Germany Germany

Screenshots (1)  
  • highlighter.png
  Files folder image Files (3)  
File Role Description
Plain text file class.highlighter.php Class Class download
Plain text file code-bright.css Data CSS file for highlighting code

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:934
This week:0
All time:3,835
This week:47Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2252