Tuesday, September 24, 2013

Blog Code Formatting

http://danielthat.blogspot.com/2013/03/how-to-display-code-in-blogger-posts.html
 
I've started using the code outlines marked in the above article. He references a style chart with a bunch of styles. Here's what my inserted header block looks like, for Linux, C#, and SQL code snippets.
 





Here's the list of brushes currently :
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

Basically, it all comes down to the idea that you put your code into a <pre> block, with an attribute of the brush type you want. Like this:

No comments:

Post a Comment