views:

512

answers:

7

I took a look on Wordpress and Blogger, and both have terrible support to source code posting. The best one on that aspect is Wordpress, which have a 'code' tag that apparently only changes the font, eliminating any indentations in the code. I was wondering if there is another blog hosting service with better support to code posting.

+2  A: 

You can use Syntaxhighlighter is a good JavaScript library for syntax highlighting and you can run it everywhere....

CMS
i've read about it, but i wanted something that i could use without having to download or spend too much time learning to use. i guess thats the better option though
David McDavidson
It's very easy to use, check the documentation: http://is.gd/41qc
CMS
+1  A: 

HTML has the <pre> tag which means "preformatted"...

Paul Nathan
hey didnt knew about that tag, thanks
David McDavidson
A: 

This site: http://wj32.wordpress.com/2007/12/08/prime-factorization-sieve-of-eratosthenes/ uses wordpress, but it has codehighlighting, so it should be possible to get that.

Ikke
A: 

I'm using the wp-syntax plugin for wordpress which is maintaining the indentation, you can see an implementation of it here: http://unkwndesign.com/blog/?p=13

Unkwntech
+6  A: 

Wordpress.com has native support for code hightlighting:

http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/

SquareCog
excellent, thanks! i guess i didnt look hard enough for it.
David McDavidson
A: 

This question is a dupe.

Darius Bacon
A: 

Use Live Writer with any blog service. You can install plug-ins for source code formatting. They work really well and properly highlight syntaxes and format the code.

Ramesh Soni