Posted By

ttscoff on 11/01/06


Tagged

textmate ruby scope


Versions (?)

Ruby Textmate Scoping


 / Published in: Other
 

  1. case ENV['TM_SCOPE']
  2. when /markdown/
  3. self.post['mt_convert_breaks'] = 'markdown_with_smartypants'
  4. when /textile/
  5. self.post['mt_convert_breaks'] = 'textile_2'
  6. when /text\.blog\.html/
  7. self.post['mt_convert_breaks'] = '0'
  8. else
  9. self.post['mt_convert_breaks'] = '__default__'
  10. end

Report this snippet  

You need to login to post a comment.