Adding jQuery to Google Prettify

I've spent some time this evening to make Google Prettify support jQuery. Results are good, as you can see below:

jQuery(document).ready(function() {

    opacity: 0
  }, 1000, function() {



You have only to add the class lang-jquery to your target element which already has the prettyprint class. You can download the lang-jquery.js file here. Remember that this file must come after the main Prettify file.

Leave a Reply

Note: Only a member of this blog may post a comment.