<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Interesting...I didn't know about the double-star fold.  That would
solve my problem nicely, I'd just have to remember to add the extra
stars.<br>
<br>
Thanks for the quick responses...<br>
<br>
Keith<br>
<br>
Martin Kühl wrote:
<blockquote cite="mid:602E4678-CE30-4347-BB1B-D463B72E8939@gmail.com"
 type="cite">
  <pre wrap="">On 21.08.2009, at 20:30, Eric O'Connell wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm not sure there's a way to do it exactly the way you want, because
the folding stop/start markers don't "know" about each other-- there's
no way you could reference the captured name of your section from the
start in the folding stop marker. So I kinda hacked it, and I got this
to work:

/* { Section_Start test */

div#supercool {
font-size: 400%;
}

div#not-so-cool {
display:none;
}

/* Section_End test } */

Note the braces at the end and beginning of the braces... This works
by adding to the start/stop markers:

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

I added everything from the final pipe "|" onward.. and these sections
will nest.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You could dispose of the braces by adding '/\*\s*Section_Start\b' and  
'/\*\s*Section_End\b' to the start and stop markers respectively. It  
would still nest but ignore the labels, and I don’t think using the  
labels is possible (nor do I think overlapping sections [like: a> b>  
<a <b] are sensible, but would have to be supported for OP’s proposal  
to work).

Note that the rules already support folding comments like these:

/** test */
...
/* test **/

Same caveats apply.

HTH,
Martin

  </pre>
  <blockquote type="cite">
    <pre wrap="">On Aug 21, 2009, at 11:06 AM, Keith Solomon wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">I'm trying to set up a code folding rule that will let me fold
sections
of CSS files I work on.  I usually define sections in my code like
this:

/* Section_Start <section name> */
...
/* Section_End <section name */

I've got the Pragmatic book, and I've looked at the included bundles,
but I can't figure out a working solution...anybody got some
pointers on
how to accomplish this?

Keith

-- 
Keith Solomon - <a class="moz-txt-link-abbreviated" href="mailto:ksolomon@gmail.com">ksolomon@gmail.com</a>
My Blog - <a class="moz-txt-link-freetext" href="http://reciprocity.be/">http://reciprocity.be/</a>
My Flickr - <a class="moz-txt-link-freetext" href="http://www.flickr.com/photos/zarath0s/">http://www.flickr.com/photos/zarath0s/</a>


_______________________________________________
textmate mailing list
<a class="moz-txt-link-abbreviated" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<a class="moz-txt-link-freetext" href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
      </pre>
    </blockquote>
    <pre wrap="">
_______________________________________________
textmate mailing list
<a class="moz-txt-link-abbreviated" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<a class="moz-txt-link-freetext" href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
textmate mailing list
<a class="moz-txt-link-abbreviated" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>
<a class="moz-txt-link-freetext" href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Keith Solomon - <a class="moz-txt-link-abbreviated" href="mailto:ksolomon@gmail.com">ksolomon@gmail.com</a>
My Blog - <a class="moz-txt-link-freetext" href="http://reciprocity.be/">http://reciprocity.be/</a>
My Flickr - <a class="moz-txt-link-freetext" href="http://www.flickr.com/photos/zarath0s/">http://www.flickr.com/photos/zarath0s/</a>
</pre>
</body>
</html>