rayantony / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Highlighting active even on <pre> without class="prettyprint" #205

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Prettify somehow prettifies even <pre> elements that don't have any class 
attribute, or, to be more precise, somehow my pre elements are downloaded to 
the browser as they are stored on the server, e.g.:

<pre>some content here</pre>

(this is what I see when I use wget) but on the client side, when I view them 
in Firebug, I see

<pre class="prettyprint"><span>content...</span>...</pre>

It looks like a call to prettyPrint() automatically adds the class attribute 
and invokes syntax highlighting when it shouldn't.

Original issue reported on code.google.com by borekb on 11 Apr 2012 at 6:55

GoogleCodeExporter commented 9 years ago
How are you invoking prettify?

Original comment by mikesamuel@gmail.com on 5 Feb 2013 at 1:01