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:


Picture 1.png

Notice the fold arrow in the gutter that surrounds both methods. Now I can fold them like this:


Picture 2.png

Thanks, Sune!