Selecting and publishing a function from a web source

I’m finding this ability to embed prettified source code a google site gadget or iframe really useful. The other day I added the ability to get and publish source code directly from a url (in addition to gists, google apps script source, scriptdb etc), and since it all uses the same google apps script module, you can of course select individual functions from with an html or js source file.

For example,  this shows only the code for the function ‘butGetHref’ from the the maze of html and javascript in the url given

http://xliberation.com/p/gaspubcontainer.html?module=http://xliberation.com/b/but.html&func=butGetHref&source=web

and gives this,

The GAS module that does this actually uses Google Caching as well, so that’s probably a good thing too. For more details see the Excel Liberation site, or use some of the links below to get engaged.

Author: brucemcp

Leave a Reply

Your email address will not be published. Required fields are marked *