I am using Google code prettify on a page (working correctly), and I want to add a function which is called once this process completes.
In the docs, they describe the following parameter:
callback=js_ident window.exports["js_ident"] will be called when prettyprinting finishes. If specified multiple times, all are called.
However, I haven't been able to get this to work for me. I am obviously missing something about how the callback function is supposed to be defined/exported.
My header looks like this (when the page loads the code is prettified correctly but the alert does not show):
Also, following this example, I have tried modifying the first block in a few different ways () a couple shown below), but with no change:
How am I supposed to define my
testing function so it can be called correctly?