Thursday, November 8, 2007

Tip: Posting Code on Blogger

Blogger is lacking a feature. That feature is posting and displaying code. I've seen plugins that can do this for other blog systems but after a little searching, I haven't found a good solution for this problem yet. Some people are going to great lengths just to get their code to show up.

Here is the tip to get javascript and other code to show up on the post. Wrap the code in < pre > < / pre > tags. I think you will have to switch to the edit html tab to do it, but it works the best. You will still have to deal with escaping "<" html like tags.

No comments: