jchili Client-side syntax highlighting for source code listings

  1. Requirements
  2. Usage
  3. Change log
  4. Resources

This widget encapsulates the Chili-jQuery plugin (modified version 2.2 for jQuery 1.4.2) and can be used to decorate code listings in most of popular computer languages (C++, C#, CSS, Delphi, Java, JavaScript, LotusScript, MySQL, PHP, and XHTML).


Yii 1.1.6 or above...


  • install and explore the demo application
  • or extract the widget file under .../protected/extensions
  • put in a view a code blocks like the following...
Sample : HTML code
$html = <<<CODE
    <title>Code Sample</title>
    <b>Hello World!</b>
Sample : PHP code loaded from a file:
Sample : Highlight a Yii class file:
Sample : Highlight HTML5 content from a website

Change log

Version 1.0
  • initial release
Version 1.4
  • code cleaning
  • bug fix
  • changed CSS


JQuery Plugin
Alternate Yii extensions
3 0
1 follower
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: volkmar
Created on: Mar 27, 2011
Last updated: 9 years ago


show all

Related Extensions