Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

What are some good Web Tools to help me format my code for blogs?

I'd like to be able to copy & paste my code into textbox/textarea and have the web tool format it nicely for various popular blogging sites.

Features: Color, indentation, line numbers, etc.

Languages: C/C++/C#, VB.net, XML/HTML/Xaml, Ruby, etc.

Bloging sites: Blogger, Wordpress, etc

share|improve this question
Is this for your own blog, or for responding to other people's blogs? – Dillie-O Jul 8 '10 at 18:13
My own blog, blogger/wordpress. No intention of showing code as a comment on someone else's blog. – sunpech Jul 8 '10 at 19:22

5 Answers

up vote 3 down vote accepted

GitHub's gist service has a rather neat embedding tool and recognises loads of different languages. I've use this to embed code snippet occasionally.

Also anything based around GeSHi works great, I've had good experiences with the CodeColorer plugin for wordpress.

share|improve this answer

There is a guide on how you can do this here: http://codeblog.kello.se/2009/01/07/getting-code-formatting-with-syntax-highlighting-to-work-on-blogger/

It's based on syntaxhighlighter which you can read more on here http://code.google.com/p/syntaxhighlighter/

share|improve this answer
I like manoli.net/csharpformat as it's web-based. I'd rather not download & install anything as I blog from various computers (PCs, Macbooks, Linux boxes, etc). – sunpech Jul 8 '10 at 17:57

I like John Skeet's Code Formatter on his C# in Depth blog

share|improve this answer

I think the best tool I've used for the purpose is Google Code Prettify. How it works and samples you can find here.

share|improve this answer

I like SyntaxHighlighter and it's now incorporated into many blog sites including WordPress by default.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.