Return to Snippet

Revision: 1640
at November 1, 2006 18:48 by ttscoff


Initial Code
case ENV['TM_SCOPE']
        when /markdown/
          self.post['mt_convert_breaks'] = 'markdown_with_smartypants'
        when /textile/
          self.post['mt_convert_breaks'] = 'textile_2'
        when /text\.blog\.html/
          self.post['mt_convert_breaks'] = '0'
        else
          self.post['mt_convert_breaks'] = '__default__'
        end

Initial URL

                                

Initial Description

                                

Initial Title
Ruby Textmate Scoping

Initial Tags
textmate, ruby

Initial Language
Other