It highlights <code> tags by default, but you can set it to highlight <pre> tags.

General notes

  • Follow the instructions reported in the file README.txt (contained in the directory js) to download the jQuery Chili plugin, and copy it in the correct directory.
  • Branches for Drupal 6 and 7 looks for the jQuery plugin also outside the directory where the module is copied, such as /sites/all/libraries/jquery.chili, or profiles/$profile/libraries/jquery.chili (where $profile is the currently used profile).
  • The module doesn't use the e PCRE pattern modifier, and it is compatible with the Facebook Hiphop interpreter. Using that modifier with the function preg_replace() is also strongly discouraged by the security team, which suggest to use the function preg_replace_callback() instead.
  • When updating to a newer version, update first the Variable API module, and then the Chili highlighter module.

Version notes

  • Updating from a different release of the development snapshot is not supported. To install a newer development snapshot, you always need to uninstall the previous version before copying the new one.
  • Development snapshots are intended only for testing. Don't use them in a production site, or for other purposes. If used in a production site, or other purposes, there will be no support for any resulting problems.
  • Chili highlighter for Drupal 5 needs an updated version of jQuery; see jQuery Update for instructions.
  • Version 6.x-2.0-alpha3 and forward require branch 6.x-2 of Variables API; Version 6.x-2.0-alpha5 and forward will require branch 6.x-2-alpha7 of Variables API.
    First install the latest official Variables API release available and then install the most recent version of Chili highlighter. Variables API and Chili highlighter must be enabled separately or you will get an error about a PHP class not being found; see also the notes reported in the Variables API project page.
  • Version 7.x-2.0-alpha4 and forward require Variables API.
    Version 7.x-2.0-alpha7 and forward will require Variable APi version 7.x-2.0-alpha8, or any more recent version.
  • Branch 7.x-3 (not yet published) allows to highlight PHP and HTML code using highlight_string().
    It also allows to highlight code using a tag named after the jQuery Chili recipe; for example, if the recipe is csharp.js, the code can be highlighted using the tag <csharp>.
  • Branch 7.x-3 doesn't depend from the jQuery Chili plugin; if the module doesn't find the jQuery plugin and the option to use the hightlight_string() function is enable, the module will be still able to highlight HTML and PHP code.

Project Information

Downloads