From: Gregory Seidman Date: 2008-04-16T01:57:50+09:00 Subject: Re: write ruby code on a blog On Wed, Apr 16, 2008 at 01:00:10AM +0900, Karl von Laudermann wrote: > On Apr 15, 8:10 am, aidy wrote: > > Hi, > > > > Anyone got any ideas on how to easily write and correctly display > > (with syntax highlighting) Ruby code on a blog? > > In the past I've done this using Vim. Vim has a command called > something like TOhtml, which will take the displayed file (such as > ruby code) and generate an html file that displays the code with the > same syntax coloring that Vim itself displays the code in. I've done > this manually by loading the desired file into Vim, executing the > command, then saving the resulting file to an .html file, but I > wouldn't be surprised if there's a way to automate it. I missed the original post, but this is what I use for my blog: http://redcorundum.blogspot.com/2006/07/syntax-coloring.html --Greg