Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by Al E., Alex, jonsca Feb 13 '14 at 13:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Application/website recommendations are off-topic and out of scope. It is better instead to use a particular web app or website and ask for help in any issues you have with it specifically." – Al E., Alex, jonsca
If this question can be reworded to fit the rules in the help center, please edit the 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. – spong Jul 8 '10 at 19:22
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). – spong 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

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