Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.