-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
>> What steps will reproduce the problem?
1. Create an xhtml page with a pre tag containing some html with inline CSS.
2. Follow the instructions as described in the readme file:
http://google-code-prettify.googlecode.com/svn/trunk/README.html
3. Please refer to the attached file:
* prettify-test-case.html
>> What is the expected output? What do you see instead?
The script prettifies the html code inconsistently. This is best illustrated by
the attached screen shots:
* prettify-unexpected-output.png
* prettify-expected-output.png
Upon close look, you will see that the prettify highlights the same block of
code differently. For example, it is pretty obvious that in the unexpected
version, "background-color" is highlighted as pln-pun-pln, where as in the
expected version, the same is highlighted as kwd.
Both pages use same version of code. However, the page that shows "expected"
behavior loads lang-css.js, lang-vb.js and lang-sql.js. The <pre> element in
both cases contains the class "prettyprint".
>> What version are you using? On what browser?
In both cases I am using:
* prettify r120 by mikesamuel on Nov 16, 2010
* FireFox 3.6.15
Original issue reported on code.google.com by schwarze...@hotmail.com on 19 Mar 2011 at 9:45
Attachments: