Hi Scott. Your request is very interesting: I'm going to add that feature to the next release of Chili.
Meanwhile, if you feel confident with javascript, you could expose the function 'makeDish', which is now inside a closure. You could then use it directly on the element to highlight. In a static setup you could write: makeDish( $( '#myPHPSnippet' )[0], ChiliBook.recipes[ 'php.js' ] ); I hope this helps, Andrea Scott Sauyet-3 wrote: > > If this is not the right forum for discussing the Chili plug-in, I > apologize. (And would love a pointer to the right place.) > > I'm quite new to JQuery and am trying my first project with it. It > involves some syntax highlighting, so I was trying to use Chili. But I > can't find a way to trigger Chili manually. It looks as though it runs > only at load time. Unfortunately, the code I want to highlight is > loaded through an Ajax call and is not available when the document is > ready. > > Does anyone know how I can trigger Chili to run on a particular element > after the page has been loaded? > > Thanks for any help you can offer. > > -- Scott Sauyet > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/Manually-loading-Chili-tf3382498.html#a9664313 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/