News for hackers. Stuff that matters.
Re:Ask HN: review my tiny app - code to html converter by maryrosecook on Monday September 14, 2009 @09:25AM (#821587)
I use gist.github.com for this. Advantages:

* Always editable in a clean text-area. * Version controlled. * Language detection and syntax highlighting.

Re:Ask HN: review my tiny app - code to html converter by alexkay on Monday September 14, 2009 @09:43AM (#821612)
GitHub's gists can indeed be embedded to blog posts, but only using an external js script. This won't work with blog hosting providers that don't allow JavaScript (for example wordpress.com).

Also, this method won't work too well when the post is viewed in an rss reader.

Re:Ask HN: review my tiny app - code to html converter by sant0sk1 on Monday September 14, 2009 @10:07AM (#821660)
Agreed.

I have waffled back & forth on embedding gists in my blog posts because they don't show up in RSS readers. Also, if you have a long blog post with multiple snippets of code you have to create a new gist for each one. It'd be nice if each 'file' in a gist could be embedded separately.