Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

HotChili

Let's you click on a colorless code listing and highlight its syntax, with a little bit of luck. Works with CSS, XHTML, JavaScript, MySQL, and PHP. Easy to customize and expand supported languages. Based on Chili, which is based on jQuery.

2007-11-25

I've just released HotChili as a bookmarklet

Chili makes it really easy for every blogger to add highlighting to their own code snippets.

Hot Chili makes it really easy for every GM user to add highlighting to someone else's code snippets.


Just click on a dull snippet and spice it up by selecting a language off the popup menu.
If you change your mind, click again and undo it. That's all!!

Test it here:

  1. PHP @ fluffycat.com
  2. SQL @ mysql.com
  3. JavaScript @ yuiblog.com

As you see, Hot Chili is very simple to use and adds quite a readability factor to code listings.




Dec 9, 2007
Andrea Ercolino Script's author

I've just released a new version of HotChili (1.2) which is much more useful because many more snippets can now be highlighted.

The userscript has changed too, so please reinstall it.

 
Sep 25, 2007
Andrea Ercolino Script's author

I've just released a new version of Chili (1.9) which is much faster than ever. There is no need for a new installation, because the user script is OK.

 
Jul 20, 2007
Andrea Ercolino Script's author

I've just fixed a little bug into Chili, but there is no need for a new installation, because the user script is OK.

Now you can use Hot Chili on a much broader collection of snippets, including those which are broken into many chunks (I know it's cryptic, sorry), like this

http://userscripts.org/scripts/review/3170

and those which are already somehow colored, like this

http://www.tizag.com/phpT/phpsessions.php

 
Jul 15, 2007
Andrea Ercolino Script's author

The user script downloads jQuery, Chili, and Hot Chili each time you browse to a page. You could reduce the burden by using one of the other two modes: system or local; or by checking it off when you don't need it.

The user script installs jQuery in such a way that let's you experiment with that awesome library. At the bottom of the user script you'll find an empty 'callback' function. It's where you should put your jQuery code.

Ah, and you can safely use the $ as the alias for jQuery inside that function. Enjoy :-)

You could comment on this script if you were logged in.