[TxMt] Folding comments in PHP

Richard Dyce dd at dyce.com
Wed May 23 07:25:02 UTC 2007


Not sure about the etiquette on follow-ups to unanswered questions,  
but I've tried looking at the grammar,
and noticed that

	foldingStartMarker = '(/\*|\{\s*$|<<<HTML)';
	foldingStopMarker = '(\*/|^\s*\}|^HTML;)';

already include standard comments, that don't seem to fold anyway! So  

	foldingStartMarker = '(/\*|/\*\*|\{\s*$|<<<HTML)';

isn't going to make much difference.

I assume that there's some other interaction further down the grammar  
that's stopping even /* ... */ working as fold markers. I've tried  
removing bits an pieces, and can't get it to go. Any ideas anyone?

On 21 May 2007, at 09:41, Richard Dyce wrote:

> Hi,
> Just wondering how I go about altering the setup to have folding  
> block comments in a PHP file? I only need to fold doc-block type  
> comments which I see have been designated as effectively ^/**$ -  
> I'm not worried about blocks within functions. My doc comments can  
> be quite voluminous, and it's frustrating seeing huge swathes of  
> comments and little class xxxx {... stubs when I want to get an  
> over view of the entire file...
> ;-)
> R
> ______________________________________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2405 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070523/edfa3cb7/attachment.p7s>

More information about the textmate mailing list