Roland, thanks for the tip about markers. For those of us who aren't as familiar with grep, can you tell me what your phrase is looking for? I can see it looks for '@end,' but the I can't quite see what the front part of the statement is saying amidst all the escaped characters.
Thanks. On Sep 15, 12:08 am, Roland Küffner <[email protected]> wrote: > Am 15.09.2011 um 05:02 schrieb Frederick Yocum: > > > Is it possible to hack the CSS module to add a rule for code folding. > > > I like to group my CSS with comments like so: > > > /* @group Global Reset */ > > ...rules > > /* @end Global Reset */ > > > and would love to be able to fold the groups. > > I don't know if you can tweek the language module to do this. But you could > use markers to ease the process: > > From the Markers Menu in the Navigation Toolbar choose "Find & Mark all". > Search for > (?s)^/\* (.+?) \*/.+?/\* @end.+?\r > Mark with > \1 > > Now you have markers for each group and you can select easily by choosing the > appropriate entry from the Marker Menu. Use a shortcut for "Fold Selection" > (from the View Menu) to fold a specific group by hand. > This is not automatic solution but on the other hand you can use the markers > to navigate quickly between your groups. > > Roland -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
