Take the 2-minute tour ×

I noticed that when I post source code in a Blogger post, the code wraps to the next line if it's too long. I use the pre tag to post the code and I used different styles (overflow: auto; white-space: pre), still the code wraps in all browsers except in FireFox.

Is there a way to post source code without having the code wraps?

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

Set the word-wrap property to normal.

share|improve this answer
Thanks a lot, worked like a charm! –  Jan Sep 6 '10 at 0:37
add comment

Checkout Syntax Highlighter if you already haven't. You can easily integrate it with blogger.

share|improve this answer
+1: Finally, a syntax highlighter that doesn't copy over the line numbers! Many thanks, sir! –  jay Sep 13 '10 at 3:00
add comment

Your Answer

