On Wed, Mar 5, 2008 at 5:15 PM, Randy Kramer <[EMAIL PROTECTED]> wrote:
> On Wednesday 05 March 2008 10:57 am, Bert Wesarg wrote:
> > Just to clearify the definitions I propos for 'nested' and
> > 'hierarchical' folding:
> >
> > * nested folding:
> > you have a starting pattern and and an end pattern, which can be
> > nested. most common in programming languages, eg C {} and so on
> >
> > * hierarchical folding
> > you have only starting patterns, but these patterns have an order,
> > if an lower ordering starting pattern appear in the text, the
> > enclosing fold is still active, but if the same or higher order
> > pattern is recognized, the current and all lower ordering folds ends
> > and a new fold starts. most common in text processing, with chapters,
> > sections, sub-sections, and so on
>
> Ahh, nice--wonderful, thank you!
>
>
> > eg:
> >
> > - \chapter{1}
> > | Introduce chapter 1
> > - \section{1.1}
> > | Some infos for section 1.1
> > L last line of section 1.1
> > - \section{1.2}
> > | because section 1.2 starts
> > L last line of section 1.2 and chapter 1
> > - \chapter{2}
> > L because chapter 2 starts
>
> Also nice, with nice (helpful) ASCII art. I have the beginning of a headache
> so am not thinking real well at the moment--I want to go back later and think
> about whether some of those "L"s should be the modified "+" or "E".
You should only use the 'E' in our examples, the '+' should only be
used for a closed folding.
anyway, I can't see an advantage for this 'E', so maybe you could give
an example and an rational for this.
A next point I don't understand is, is it right, that the folding
engine should also handle partial intersected folding regions?
-
|
|-
||
L|
|
L
Bert
> Randy Kramer
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop