Hi!
I was wondering if it's possible to define a "foldingStopMarker" that marks the line _above_ some pattern to end a folding. The issue here is that I have a markup (so called structured text) that does not use any explicit "end" marker, as the next "start" marker implicitly stops the previous.
Example markup:
= MAIN
! First Chapter
...
! Second Chapter
...
= APPENDIX
! Appendix 1
...
As you see, parts of the text are marked with "= PART", chapters with "! chapter", sections with "!! section" etc. Hence, "! Second Chapter" in this example concludes "! First Chapter", and the "foldingStopMarker" should point to the line above "! Second Chapter".
Any help is greatly appreciated.
Thanks and regards - Stefan
-- Stefan Brantschen sbr@acm.org
On Apr 11, 2005, at 22:23, Stefan Brantschen wrote:
I was wondering if it's possible to define a "foldingStopMarker" that marks the line _above_ some pattern to end a folding.
Sorry, it is not. But I will consider this when I revise the system. Although it looks more and more like I'll have to provide a hook to do the folding “markup” instead of creating a declarative system, since the requirements are simple to diverse.
Sune "nitpicker extraordinaire" Foldager wrote:
On 12-04-2005, at 16:01, Allan Odgaard wrote:
simple to diverse.
simple to device or simply too diverse? I reckon the latter :-p.
now you've only gone and left yourself open to getting trumped by mega-pedantry
s/device/devise
mark.