PHP Classes

ChiliHighlighter for PHP: Highlight PHP scripts with JQuery

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-05-11 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 977 All time: 3,565 This week: 879Up
Version License PHP version Categories
chili 0.1.0MIT/X Consortium ...4.0HTML, Text processing
Description Author

This class can be used to highlight code in PHP or other languages using the JQuery Javascript library.

It generates HTML tags with Javascript that users JQuery and its plug-ins to highlight a given piece of code in a Web page.

Currently it supports the languages: C++, C#, CSS, Delphi, Java, JavaScript, LotusScript, MySQL, PHP and XHTML.

The class can highlight code given as a string or read from a server side source file.

Innovation Award
PHP Programming Innovation award nominee
May 2007
Number 7

Prize: One book of choice by Packt
There are many sites that show pieces of programming code in their pages. Syntax highlighting is useful to display the code in a more pleasant way for the users.

PHP provides syntax highlighting support, but it only supports PHP code.

ChiliHighlighter is a plug-in for the JQuery Javascript library that can highlight code written in many other languages besides PHP.

This class simplifies the process of displaying code highlighted by the ChiliHighlighter plug-in in pages generated by PHP sites.

Manuel Lemos
Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 28 packages by
Country: Armenia Armenia
Age: 36
All time rank: 61 in Armenia Armenia
Week rank: 45 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x

  Files folder image Files  
File Role Description
Files folder imagejs-chili (4 files)
Plain text file ChiliHighlighter.php Class Source code
Accessible without login Plain text file example.php Example Sample of usage

  Files folder image Files  /  js-chili  
File Role Description
  Accessible without login Plain text file chili-1.7b.pack.js Aux. Chili plugin
  Accessible without login Plain text file jquery-1.1.2.pack.js Aux. jQuery library
  Accessible without login Plain text file recipes.css Aux. Stylesheet
  Accessible without login Plain text file recipes.js Aux. JS RegExp definitions

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,565
This week:879Up