[TxMt] Re: Extending HTML Code folding

Rob McBroom mailinglist0 at skurfer.com
Tue Mar 23 19:30:16 UTC 2010


On Mar 23, 2010, at 2:23 PM, Saul Rosenbaum wrote:

> Works brilliantly, but my question is how to extend the css code folding from within other types of files (like HTML, PHP etc.) Doing a bunch of one-off pages and it would help greatly.

The HTML grammar includes the CSS grammar where appropriate, rather than redefining it. Search the HTML Language definition for "source.css.embedded.html” to see what I mean.

So it should already work for things inside a <script> tag.

(PHP is handled in a similar way and you should always choose HTML when editing PHP files.)

-- 
Rob McBroom
<http://www.skurfer.com/>

Because it screws up the order in which people normally read text.

Original message:

> Why is it bad to top-post your reply?






More information about the textmate mailing list