1

Im trying to get the google prettify working on my site. So far ive,

Loaded the Js at the beginning of the page via

<script src="/templates/yoo_digit/styles/fir3net20/js/run_prettify.js"></script>

Which I can see is being loaded. And also add some code with the ..

<pre class="prettify">code</pre> 

.. tags. I can see that the js is being loaded and there are no js errors via firebug.

1 Answer 1

1

I think the class name is "prettyprint" and not "prettify" change your html to this

<pre class="prettyprint">code</pre> 

here is the fiddle http://jsfiddle.net/64pat/

Reference :-https://code.google.com/p/google-code-prettify/wiki/GettingStarted

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.