Google Prettify Removes Line Breaks?
Asked Answered
H

1

10

When I try to use Google Prettify to syntax highlight my code, I notice that it causes code to become one line ... why is that? When I remvoe prettify, it works

Heterocercal answered 29/4, 2011 at 9:35 Comment(1)
Out of curiosity (and if you still remember/know), did you apply the prettyprint class to a pre or code tag?Hanghangar
D
7

This is a well-known issue that someone's still trying to track down. Hang on, I've got the bug favourited somewhere...

Yeah, there we go, here's the link to the issue in the Google Code issue tracker, assuming you're using IE, or one of the other affected browser/versions.

Demetri answered 12/5, 2011 at 13:42 Comment(2)
Only in IE10 any more... this is the newest NuGet package to dateHeave
For me, using <pre class="prettyprint"> rather than <code class="prettyprint"> worked :D.Explanation

© 2022 - 2024 — McMap. All rights reserved.