baleezo / google-code-prettify

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

Hex colour values in explicit CSS snippets are marked as comments #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Add <pre class="prettyprint"><code class="language-css">a { color: #000 
}</code></pre>
2. Invoke prettyPrint

What is the expected output?  What do you see instead?

"#000" is wrapped in a span with class of "com", which seems like a mistake 
given that it's not a comment.

What version are you using?  On what browser?

I'm using a version that's a few months old. I don't know the exact revision.

Browser: Chrome 14.

Original issue reported on code.google.com by David.Ch...@gmail.com on 2 Oct 2011 at 1:24

GoogleCodeExporter commented 8 years ago
Are you loading lang-css.js?  The color literal from 
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#cs
s :

    TABLE.foo TR.bar A#visited { color: #001123; font-family: "monospace" }

appears to highlight fine.

Original comment by mikesamuel@gmail.com on 30 Mar 2012 at 6:20

GoogleCodeExporter commented 8 years ago
same problem here

Original comment by aurelien...@gmail.com on 15 Jul 2012 at 10:11

GoogleCodeExporter commented 8 years ago
Fixed it ! I just forgotten to mention "language-css" as a class of Code

Original comment by aurelien...@gmail.com on 15 Jul 2012 at 10:14

GoogleCodeExporter commented 8 years ago

Original comment by mikesamuel@gmail.com on 5 Feb 2013 at 12:54