Ruby Textmate Scoping


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.