Publish and prettify source directly from a url

If you’ve been following the various posts about publishing source code from gists, google apps script, scriptdb and so on, you may have realizes there was one missing link. Publishing source code direct from a url.

Something like the example below, embedded in an iFRame, will add source code to your site or blog.

https://storage.googleapis.com/toasty/p/gaspubcontainer.html?source=web&module=https://storage.googleapis.com/toasty/p/gaspubcontainer.html

 

This turned out to be a very small amendment to the previous capability, handled in the shared mcpher library, so if you have forked any of the code, you should not need to make any changes to get this extra capability. The parameter ?source=web means that the url given by &module=url is to be prettified and displayed. All the other display options mentioned for other sources are available too of course. For full details see the Excel Liberation site.

About brucemcp 225 Articles
I am a Google Developer Expert and decided to investigate Google Apps Script in my spare time. The more I investigated the more content I created so this site is extremely rich. Now, in 2019, a lot of things have disappeared or don’t work anymore due to Google having retired some stuff. I am however leaving things as is and where I came across some deprecated stuff, I have indicated it. I decided to write a book about it and to also create videos to teach developers who want to learn Google Apps Script. If you find the material contained in this site useful, you can support me by buying my books and or videos.