You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
What steps will reproduce the problem?
1. Use html like the following:
<pre class="prettyprint">
throw new RuntimeException("Element [" + element.getName() +
"] missing attribute.");
variable++;
</pre>
What is the expected output? What do you see instead?
1. Expect that 'variable ++;' line is colored as code, but it is instead
displayed as a comment. The last double-quote character on the preceding
line is printed 'fancy', and all following characters on this same line are
also colored as comment (colored as code would be expected).
What version are you using? On what browser?
31-Aug-2007 (small) on Firefox 2.0.0.14. Same problem occurs on Internet
Explorer 7.
Original issue reported on code.google.com by basil.va...@gmail.com on 1 Jul 2008 at 10:30
The text was updated successfully, but these errors were encountered:
Thanks for the fast response.
Yes, the test case runs correctly for me.
I've looked into this further, and it appears the problem is on my end. I'm
using
WordPress to publish content on my site, and WordPress is converting a trailing
double-quote into a ” character, which is similar but not identical, so code
prettifier correctly thinks the string is not terminated and continues the
coloring
onto the next line.
This <a href="http://wordpress.org/support/topic/125038">WordPress support
article</a> describes how to prevent WordPress from doing this conversion.
So in conclusion there is no defect in Code Prettify.
Original comment by basil.va...@gmail.com on 5 Jul 2008 at 10:51
Original issue reported on code.google.com by
basil.va...@gmail.com
on 1 Jul 2008 at 10:30The text was updated successfully, but these errors were encountered: