Chili 1.8 Released Today

UPDATE: Chili 1.8a has been released

Changes
  • Added chainability
    • $( selector ).chili( options )… should work fine with almost all ChiliBook options
  • Improved speed
  • Improved examples
  • Added an automatic option, by default set to true
    • use true for executing Chili on page load
    • use false for not executing Chili on page load
  • Integrated the metaobjects plugin
  • Exposed the metaobjects selector by means of the metadataSelector option, by default set to object.chili
    • you can now use a different selector, but the param’s name still needs to be chili
  • Improved the elementPath / elementClass feature by means of the new options automaticSelector / codeLanguage
    • automaticSelector is a better name for elementPath
    • codeLanguage is a function that gets the element to highlight as an argument and returns the language to highlight it with
    • elementPath and elementClass are still supported
  • Fixed a bug that made Chili highlight more code sections than requested in dynamic setups, under special circumstances
Files
  • download all in a zip
  • read the manual
  • Examples
    • bundled languages
      this page shows how Chili highlights the bundled languages: JavaScript, PHP, MySQL, XHTML, Java, C++, C#, Delphi, and LotusScript (BTW, using the dynamic and automatic setup)
    • static, automatic, adhoc: this page shows how to setup Chili for
      • downloading recipes and stylesheets all at once, using HTML
      • highlighting code sections automatically
      • highlighting code sections ad-hoc
    • dynamic, automatic, adhoc: this page shows how to setup Chili for
      • downloading recipes and stylesheets as needed, using AJAX
      • highlighting code sections automatically
      • highlighting code sections ad-hoc
    • dynamic, automatic, adhoc, metaobjects: this page shows how to setup Chili for
      • downloading recipes and stylesheets as needed, using AJAX
      • highlighting code sections automatically
      • highlighting code sections ad-hoc
      • highlighting code sections using special recipes and stylesheets, by means of metaobjects
    • all the other combinations: this page shows all the other possible combinations

One Reply to “Chili 1.8 Released Today”

  1. This is really useful! And chained usage makes it really a few keystrokes!! Thank you so much! 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.