3

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

Vlad Vinnikov
  • 1,457
  • 3
  • 22
  • 33

1 Answers1

3
<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>
William Robertson
  • 15,273
  • 4
  • 38
  • 44