If anybody is used to the // {{ and // }} folding in vim and wants the same in TextMate you can use the following language config to do similar things with Ruby.<br><br>#begin ten<br><br>=begin<br>This is inline documentation
<br>=end<br><br>def ten<br>   10<br>end<br><br>#end<br clear="all"><br>The following will create a fold between #begin and #end as well as add a fold for =begin/=end comments.<br><br>Add the following two lines to your Ruby language file in the foldingStartMarker section . . . 
<br><br>            |begin<br>            |=begin               # line 1<br>            |[#]begin             # line 2<br>            |for|while|until<br><br>and these two to your foldingEndMarker section . . . <br><br>        |   ^     \s*+ [}\]] \s*+ ([#].*)? $
<br>        |   [#] .*? \(end\) \s*+ $    # Sune's special marker<br>        |^=end$                         # line 1<br>        |[#]end$                         # line 2<br>        )';<br><br>Hope this is helpful.<br>
<br>'njoy,<br>Mark<br><br>-- <br>Cropp's Law:<br>        The amount of work done varies inversly with the time spent in the<br>        office.