Sunday, February 3, 2008

Test post - Posting source code

This is a test post


Inside Block quote
def main:
print "blah"



Inside code block
def main:
print "blah"



Inside Block and code quote
def main:
print "blah"


Inside pre block
def main:
print "blah"

Seems the best way (easiest) to post source code into blog
is using <pre> tags with following css:

pre {  
font-family: "Courier New", Courier, mono;
font-size: 12px;
color: #000000;
background-color: #FFFFCC;
padding-top: 8px;
padding-right: 8px;
padding-bottom: 8px;
padding-left: 8px;
border: #000000;
border-style: dashed;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
width:auto;
}

No comments: