Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

3 Answers 3

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

Use Code Prettify.

I' have written some notes on how to.

share|improve this answer

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.