Is it possible for a button to call a function that would 'prettify' a dynamic <code><pre>
? I can't get it to work.
After the page loads, the initial <code>
is prettified(?), but when I change it and call prettyPrint() afterwards, it no longer works.
Example: http://jsfiddle.net/uwBjD/2/
Edit: Sorry, I was using a local prettify.js. Updated it, still encountered the same error.
prettyPrint is not defined
for me. This may have to do with the fact that one of your scripts, prettify.js, is 404ing. – Lithiasis