How to disable code highlighting for google code prettify?

680 views Asked by At

Is it possible to add a class to pre tag to disable code highlight? I tried adding classes prettyprint-false and no-prettyprint. https://code.google.com/p/google-code-prettify/wiki/GettingStarted

1

There are 1 answers

0
William Robertson On
<pre class="prettyprint prettyprinted">

Or within a pretty-printed block, add this to a section you don't want prettified:

<span class="nocode"> ... </span>

Example of a prettyprinted block with a "nocode" section:

<pre class="prettyprint">
   select blah
   from   blahblah
   where  blahblahblah;

   <span class="nocode">
   BLAH
   ------------
   Various results
   of clever query

   2 rows selected.
   </span>
</pre>