This project is read-only.

pre tag not working right

Topics: Controls
Jan 19, 2008 at 9:45 PM
When creating a blog post if I wish to display source code I use the pre tag to do so. I am getting some strange behavior when I use a pre tag.

If I create a post with a pre tag using IE 7.0 and then when I save teh post and view it, all I see is one very long line. I seem to lose my line breaks.

If I create a post using FireFox then the line breaks work but I lose the code indentation, i.e., all my lines in the pre tag start completely left justified no matter what the original format was.

What am I missing?

Jan 19, 2008 at 9:48 PM
Hmmm I should have searched teh issue lists too not just teh discussions. I just found that BlogEngine offers code:cyour code/code for C# (for example) so I guess I can use this.