Politics, Programming and Possibilities
21 Jun
I was browsing the language source code to the Ruby on Rails bundle in TextMate and came across a mysterious “Sune’s Special Marker”. It turns out that while editing Ruby on Rails files in TextMate, you can put fold markers in your code as a comment and get TextMate to fold large sections of text to get it out of the way.
For example:

Notice the fold arrow in the gutter that surrounds both methods. Now I can fold them like this:
Thanks, Sune!
Leave a reply