Friday, October 1, 2010

Perhaps the best way to paste code in blogger

Github Gists.

Here's a simple example


Syntax highlighting for a gazillion langugaes, forkable, editable, and revisions to boot. What's not to like compared to methods like these?


Honestly, I think any dev worth his salt should switch to this method or it's equivalent.

2 comments:

Kashyap said...

nice. though, it looks like an external dependency on gist.github.com

if you wanted a not-so-fancy way of doing it... try opening your file in vim, and using the :TOhtml command.

http://tips.webdesign10.com/how-to-convert-code-to-html-with-vim

RPG said...

That's a nice trick.