Hi instanton,
I think the following commands should be added:
1, \startXXX...\stopXXX pair
2, \ifYYY ... \else ... \fi structure
3, \chapter, \section, \subsection, \title and \subject, \topic, etc.
IMHO, I'd like to folder
\def\XXX#1%
{...}
and some \setupZZZ, \defineZZZ's.
I hope you can provide some mysterious folding symbols, like
%%--{{
something i like to be folded.
%%--}}
Hi,I don't know much about lua so I'm afraid that I cannot do much about the code-folding via lua script. However there are some built-in pseudo-TeX commands like %\StartFolding %\EndFolding in NotePad++ and the unofficial SciTE I'm using which can be used to manually control where text fold should apply. At present I can only add a minimum scope of ConTeXt commands in the souce code which controls TeX folding. Which commands would you suggest to add?2007-05-28----- Original Message -----From: Zhichu ChenTo: soft_shareSent: 2007-05-28, 06:49:23Subject: Re: [NTG-context] Scite foldingHi, instantonIs there any possibility that you can make an addon lua script to do the folding function that we can add syntax by ourselves? Because I wanna keep the official SciTE.
On 5/28/07, soft_share <soft_share@126.com > wrote:Dear all,
Just come across this thread. The TeX folding feature in NotePad++ was adapted by me and originally the adaptations was made in SciTE. As I am not a ConTeXt user, I am not aware of the structure of sectioning commands in ConTeXt. Could anyone of you let me know of a minimum list of sectioning commands in ConTeXt so that I can modify the source code to make the TeX folding in SciTE and NotePad++ work also for ConTeXt documents?
Bests
instanton@ctex.org
2007-05-28
--
Best Regards
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------