>  > For example, I haven't consider this 'hierarchical' folding thing,
>  > only 'nested' folding.
>  > Because I programming most, but for text processing (HTML,LaTeX,wiki)
>  > this 'hierarchical' folding is of more value.
>
>  Hmm, I'm glad I used the word hierarchical then--I'm not exactly sure what
>  additional you inferred from that word, but I almost used nested to describe
>  it, and I guess we would have lost something. ;-)
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

 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

Bert
>
>  regards,
>  Randy Kramer
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to