javascript - ReferenceError: prettyPrint is not defined error -


hope can me referenceerror: prettyprint not defined.

<a class="question helpcenterheading" href="http://www.google.com">how contact you?</a> <span class="answer">one moment...</span>  <script> $(document).ready(function() {     $("span.answer").hide();     $("a.question").click(function() {         $(this).toggleclass("active").next().slidetoggle(2000, function() {             window.location.href = $(this).attr('href');         });         return false;     }); }); </script> 

(live version)

according documentation there 2 ways run prettify:

1) auto-loader run_prettify.js. doesn't require call functions, can specify parameters in url.

2) serving own js , css, loading prettify.css , prettify.js. need use <body onload="prettyprint()">.

i think you're using auto-loader, , trying call prettyprint(). pick 1 or other method, can't mix them.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -