topical media & game development

talk show tell print

lib-jquery-plugin-charts-include-js-lib-ycodaslider-2.0.rc2-lib-chili-html.js / js



  /*
  ===============================================================================
  Chili is the jQuery code highlighter plugin
  ...............................................................................
                                                 Copyright 2007 / Andrea Ercolino
  -------------------------------------------------------------------------------
  LICENSE: http://www.opensource.org/licenses/mit-license.php
  WEBSITE: http://noteslog.com/chili/
  ===============================================================================
  */
  
  {
      steps: {
            mlcom : { exp: /\<!--(?:\w|\W)*?--\>/ }
          , tag   : { exp: /(?:\<\!?[\w:]+)|(?:\>)|(?:\<\/[\w:]+\>)|(?:\/\>)/ }
                  , php   : { exp: /(?:\<\?php\s)|(?:\<\?)|(?:\?\>)/ }
          , aname : { exp: /\s+?[\w-]+:?\w+(?=\s*=)/ }
          , avalue: { 
                            exp: /(=\s*)(([\"\'])(?:(?:[^\3\\]*?(?:\3\3|\\.))*?[^\3\\]*?)\3)/
                          , replacement: '$1<span class="$0">$2</span>' }
          , entity: { exp: /&[\w#]+?;/ }
      }
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.