Created
March 21, 2012 10:54
-
-
Save arnalyse/2146164 to your computer and use it in GitHub Desktop.
Textmate: Foldable CSS groups (@-groups)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Goto Bundles -> Bundle Editor -> Edit Languages | |
// 2. Select CSS | |
// 3. Swap Lines 4 & 5 | |
// fold css groups like | |
// /* @group put-a-groupname-here */ | |
// … | |
// /* @end repeat-the-group-name-or-just-write-anything */ | |
foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*@group\s*.*\s*\*\/'; | |
foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|\/*\s*@end\s*.*\s*\*\/'; | |
// source: http://css-tricks.com/forums/discussion/2783/foldable-textmate-css-groups-i.e.-cssedit/p1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment