Hi, i have posted this question on stackoverflow http://stackoverflow.com/questions/38933764/prettify-prettyprint-function-not-loading-inside-script-tag To initialize the script, it can to be called like this: I don't want to add this attribute to all the Here is the code:
The code snippet is not getting highlighted as it did when i called the function through How can i call this function from the |
Onload runs after all tags in the body have been added to the DOM but a script at the start of the body runs before any other tags in the body have been processed so your script is running fine. It's just running before there's anything to prettify.
Consider using the run_prettify.js script instead.
--
You received this message because you are subscribed to the Google Groups "js-code-prettifier" group.
To unsubscribe from this group and stop receiving emails from it, send an email to js-code-prettifier+unsub...@googlegroups.com.
To post to this group, send email to js-code-prettifier@googlegroups.com.
Visit this group at https://groups.google.com/group/js-code-prettifier.
For more options, visit https://groups.google.com/d/optout.