5

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

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

5 Answers 5

3

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.

1

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/

1
  • 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
    Commented Jul 8, 2010 at 17:57
1

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

0
0

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

0

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

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