Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I really like how BBEdit allows you to fold blocks of code. But for Ruby code it doesn't recognize curly braces as a place to insert folds automatically. Is it possible to tweak the preferences in a way that lets me to collapse/expand code between curly braces (JavaScript code is like that)?

Hope this makes sense to someone.

share|improve this question

With Ruby selected in the language popup I do get that functionality. Perhaps you don't have Ruby selected in the language popup?

(I also didn't try this with the "Ruby in HTML" language setting - maybe you're using that?)

enter image description here

share|improve this answer
    
Thanks Ryan! I just tried the same snippet that you have shown and it did work. Originally I wanted to fold code with braces that looks like this: @tasks = Task.to_json(:include => {...some nested code here...}) Do you think that it is possible? – Shvetusya May 21 '12 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .