Skip to content

Instantly share code, notes, and snippets.

@arnalyse
Created March 21, 2012 10:54
Show Gist options
  • Save arnalyse/2146164 to your computer and use it in GitHub Desktop.
Save arnalyse/2146164 to your computer and use it in GitHub Desktop.
Textmate: Foldable CSS groups (@-groups)
// 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