Test: embedding a "gist" on Posterous

So now that they added tagging, one of the few things missing to make Posterous perfect for me is good source code presentation. OK, to be honest, just good markup support would be nice (Posterous is obviously geared more to those who know for media than to those who know for markup), and poor code listing presentation is just a manifestation of the overall weakness in the markup system/editor.

So I'm trying out an idea: to use github gists to host the code, and embed them here. Here goes:

listing 1

If this works you should see some nicely formatted Python code, with some useful options, hosted at github. The code itself is a cool little trick with Amara 2, as well.

Update: So it didn't work.  I think Posterous is ignoring the script tag, and I can't say I blame them (users could do all sorts of frightfully naughty things with the script tag), but that does raise the question of whether I can have decent in-line code here, and thus whether I can use it as my primary blog host for my developer side.

4 responses
If you are eventually going to be mirroring this feed back at copia.ogbuji.net a little JS could embed it there. jQuery is able to use things like hidden iframes to make the magic happen even when it is across domains.
I'm not sure when it was added, but you can now encase code blocks in [code][/code] tags in the post. See http://prng.vangorkom.org for examples.
If you want to add gists to your posts, it's now supported properly in Posterous. Just add the url of the gist (http://gist.github.com/123456) in plain text (not a link) and it'll insert the gist automatically. Magic.
i've adding gist url on posterous: https://gist.github.com/665279
it doesn't work. just shows the link. am i doing something wrong?