1

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.

lanan
  • 111
  • 4

1 Answers1

0

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

RyanWilcox
  • 353
  • 1
  • 8
  • 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? – lanan May 21 '12 at 14:36