Post by Peter Cooper on June 6th, 2006
How to format Ruby code for HTML and blog posts

- Textpow + Ultraviolet: TextMate Powered Syntax Highlighting for Everyone!
- TextMate Screencasts for Rubyists
- TextMate’s Snippets Ported to RadRails


You might have noticed this blog has nice, syntax colored code excerpts, as does Code Snippets. Jim Morris looks at how you can pull this off in a few different ways. One quick and easy way is to use syntax.carldr.com, a Web site that converts any Ruby code you paste into the correct syntax colored HTML. Currently I use TextMate and an external script using the syntax gem, but might use that site instead as it's easier!

Click here to add on del.icio.us
Tweet This








