[TxMt] Specifying Folding Regions in PHP

Derek Belrose derekb at realgeeky.com
Sat Sep 2 00:11:35 UTC 2006


Thanks for the input, I don't mind helping out if you need it to fix  

Right now I have modified the HTML and PHP folding patterns to  
include //#REGION and //#END REGION in the folding.

It's probably not a great solution but it works for me right.  Once a  
convention is agreed on, I will be more than happy to help out.

On Sep 1, 2006, at 4:50 PM, Allan Odgaard wrote:

> On 1/9/2006, at 20:21, Derek Belrose wrote:
>> I have a strong background in .NET and Visual Studio 2003/2005.   
>> I'm used to being able to wrap blocks of code around #Region "Fold  
>> this" and #End Region markers and the UI would allow that block of  
>> code to fold up.
>> Is there a way of doing this in Textmate with the PHP bundle or  
>> any other bundle?  I figured I'd ask before trying to reinvent the  
>> wheel.
> In Ruby and LaTeX single line comments containing (fold) and (end)  
> last will act as start/stop folding markers. But it is not a  
> general convention.
> So you would need to modify the HTML folding patterns to include  
> support for your markers.
> We probably could adopt some general conventions and start use them  
> in the various folding marker patterns, so there would be default  
> support for more than just { and }.
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

More information about the textmate mailing list