[TxMt] Folding comments in PHP

Michael Sheets mummer at whitefalls.org
Wed May 23 07:52:27 UTC 2007


On May 23, 2007, at 2:25 AM, Richard Dyce wrote:

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

Was hoping that someone more familiar to PHP would answer, but  
reading your response there are a few things to note.

Your looking in the wrong grammar, PHP technically works when  
selected directly but your meant to use the HTML grammar when editing  
PHP. Hence it is the HTML foldings that are active not PHP. (Embedded  
grammars don't bring along their foldings, only the patterns.)

If you directly select PHP the comments will fold (provided the  
indention is the same), they are not part of the HTML foldings  
though, so you'd have to add them there.



More information about the textmate mailing list