CSS Groups in E-texteditor

7 Jun

Press CTRL+SHIFT+B, open CSS folder then CSS language (with a black L on it, usually is last). Go to line 286 and find this:

"foldingStopMarker" : "(?<!\\*)\\*\\*/|^\\s*\\}",
"comment" : "",
"foldingStartMarker" : "/\\*\\*(?!\\*)|\\{\\s*($|/\\*(?!.*?\\*/.*\\S))",

Replace with this:

   "foldingStopMarker" : "(?<!\\*)\\*\\*/|^\\s*\\}|\/*\\s*@end\\s*\\*\/",
   "comment" : "",
   "foldingStartMarker" : "/\\*\\*(?!\\*)|\\{\\s*($|/\\*(?!.*?\\*/.*\\S))|\/\\*\\s*@group\\s*.*\\s*\\*\/",

Without grouping:

CSS Groups in E-texteditor

With grouping:

CSS Group in E-texteditor

Thanks to Chris Coyier.

Tags: , , Comments (2)

Bookmark this article!

Del.icio.usDiggStumbleUponFurlRedditTechnorati

SlashDotWindows LiveYahooGoogleFacebookBlogLines

Did you like this article?

Don't hesitate to subscribe to my RSS feed!

Also, don't forget, you can also read me on twitter!

2 Comments »

  1. That’s a sexy one, keep it up to the good work.

    Best Regards,
    Iankulov Miodrag

  2. June 11, 2009 The reader said:

    Nice trick! Thanks.

Leave a comment

Nu completa urmatorul câmp!

Do NOT fill this !