[TxMt] Extending HTML Code folding

Saul Rosenbaum saul at visualchutzpah.org
Tue Mar 23 18:23:03 UTC 2010


I've extended css code-folding to include groups (ala cssedit) by tweaking
the css language file

foldingStartMarker =
'/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*@group\s*.*\s*\*\/';
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|\/*\s*@end\s*\*\/';

(I didn't write these regex, but I found them here
http://css-tricks.com/forums/viewtopic.php?f=8&t=2783 )

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.

TIA

saul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100323/3c267979/attachment.html>


More information about the textmate mailing list