Wednesday, June 29, 2005

Posting Code to Blogger

Ok, I have griped about this in the past-- it's hard to post code in blogger. Well here's a start to doing it:

PRE tag

You can use the tag pre to keep the formatting of text. If I paste Matlab code into blogger, for example, it removes the tabs and spaces. Using <PRE> prevents that.

Characters interpreted as Code

This is the annoying bit-- you can use <, &gt, " and they won't get interpreted. That's the best I have for now.

No comments:

Labels

Blog Archive

Contributors