Sunday, August 8, 2010

Code gets cut off in blog posts

When you put code inside <pre><code> in a Blogger post, if it's too wide for its column, the excess just gets cut off. The solution is to use <pre style="overflow: auto;">.

0 comments: