Skip to content

HTML detection not as expected or detected inconsistently #142

Description

@GoogleCodeExporter
>> 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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions