From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34804 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Re: Scite folding Date: Mon, 28 May 2007 14:53:25 +0800 Message-ID: <769ba7780705272353w28ae1ca4q1f492c68811a678f@mail.gmail.com> References: <769ba7780705271549j41a01f35vd8a4214157d4f913@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1367165062==" X-Trace: sea.gmane.org 1180335249 7201 80.91.229.12 (28 May 2007 06:54:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 May 2007 06:54:09 +0000 (UTC) Cc: mailing list for ConTeXt users To: soft_share@126.com Original-X-From: ntg-context-bounces@ntg.nl Mon May 28 08:54:04 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HsZ7D-0004k5-1p for gctc-ntg-context-518@m.gmane.org; Mon, 28 May 2007 08:54:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E22DC1FCDB; Mon, 28 May 2007 08:54:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15355-01-2; Mon, 28 May 2007 08:53:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CAA71FC83; Mon, 28 May 2007 08:53:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 531601FC3E for ; Mon, 28 May 2007 08:53:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15355-01 for ; Mon, 28 May 2007 08:53:30 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by ronja.ntg.nl (Postfix) with ESMTP id E77EB1FC83 for ; Mon, 28 May 2007 08:53:28 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id j32so739796waf for ; Sun, 27 May 2007 23:53:26 -0700 (PDT) Original-Received: by 10.114.12.9 with SMTP id 9mr2767028wal.1180335205556; Sun, 27 May 2007 23:53:25 -0700 (PDT) Original-Received: by 10.114.107.11 with HTTP; Sun, 27 May 2007 23:53:25 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34804 Archived-At: --===============1367165062== Content-Type: multipart/alternative; boundary="----=_Part_190604_6839937.1180335205518" ------=_Part_190604_6839937.1180335205518 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. %%--}} On 5/28/07, soft_share wrote: > > 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? > > > soft_share@126.com > 2007-05-28 > > ----- Original Message ----- > *From: *Zhichu Chen > *To: *soft_share > *Sent: *2007-05-28, 06:49:23 > *Subject: *Re: [NTG-context] Scite folding > > Hi, instanton > > Is 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 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 <+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 > ---------------------------------------------------------------- > > -- 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 ---------------------------------------------------------------- ------=_Part_190604_6839937.1180335205518 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.
%%--}}


On 5/28/07, soft_share <soft_share@126.com> wrote:
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 Chen
Sent: 2007-05-28, 06:49:23
Subject: Re: [NTG-context] Scite folding

Hi, instanton
 
Is 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
----------------------------------------------------------------



--
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
---------------------------------------------------------------- ------=_Part_190604_6839937.1180335205518-- --===============1367165062== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1367165062==--