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".
Certainly not the last and probably not the 2nd last, but maybe the first. In
any case, an example like this but expanded to show where the modified "+" or
"E" comes in, would, I'm sure, be useful.
Actually, I think (but still am not sure) it would be like this (that's based
on a very quick look at one of my documents in kate):
- \chapter{1}
| Introduce chapter 1
- \section{1.1}
| Some infos for section 1.1
+ 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
Thanks!
Randy Kramer
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop