To make sure that your blogger and your site always reference the same (latest) version of your code samples, and that the formatting is consistent across your site and your blog, you should consider using github to be the master for all your code samples. Take a look at how to embed gist in Blogger in this post. Here we'll cover how to do the same thing in Google Sites (which is hosting this site).
We'll use the code sample for Simple implementation of R- melt to embed the code from this gist. Here is the XML file needed http://gadgets.derquinse.net/gist-github/gist-github-gadget.xml
And it Works! Now my site will be automatically updated if I change the code.
Another way is to use the caja prettifier wrapped up in Google Apps Script. You can read about how this works here. This time we use a simple iFrame gadget, and embed a URL like this
Here is the same thing -
See Get Started Snippets for more topics like this. In the meantime why not join our forum,follow the blog or follow me on twitter to ensure you get updates when they are available.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Get Started Snippets >