RDoc preview in Textmate
Create /usr/bin/rdoc2html:
#!/usr/bin/env ruby -rrdoc/markup/simple_markup -rrdoc/markup/simple_markup/to_html input = ARGF ? ARGF.read : STDIN.read print SM::SimpleMarkup.new.convert(input, SM::ToHtml.new)Make the file executable:
sudo chmod +x /usr/bin/rdoc2htmlIn textmate, hit Cntrl-Option-Command-P. In the bottom left corner, click Show options. Click the Pipe text through checkbox and enter "/usr/bin/rdoc2html" in the text box.


