Sunday, August 7, 2011

Format My Source Code for Blogging

This is a cool link I found. simply paste your code into the app, and it will automatically generate a nice box with the code inside using the "pre" html tag.

A Javascript web application that will format source code text into HTML for inserting into your blog.


Format My Source Code for Blogging

A sample from the app:

.post-body blockquote {
margin: 1em 3em;
padding: .5em;
background-color: #f6ebc1; 
}


I changed the generated "width: 100%" to "margin: 1em 3em"

This is the original.

.post-body blockquote {
margin: 1em 3em;
padding: .5em;
background-color: #f6ebc1; 
}

No comments:

Post a Comment