Re: [NTG-context] Listings

2008-10-03 Thread Mojca Miklavec
On Fri, Oct 3, 2008 at 7:49 AM, Peter Münster wrote: > On Thu, Oct 02 2008, Mohamed Bana wrote: > >> Maybe someone should ask the authors of listings.sty if they're are >> willing to port it to ConTeXt. Here's the relevant link; >> http://www.ctan.org/tex-archive/macros/latex/contrib/listings/ > >

Re: [NTG-context] Listings

2008-10-03 Thread Peter Münster
On Thu, Oct 02 2008, Mohamed Bana wrote: > Maybe someone should ask the authors of listings.sty if they're are > willing to port it to ConTeXt. Here's the relevant link; > http://www.ctan.org/tex-archive/macros/latex/contrib/listings/ I've done that in the old days of MKII: there was too much

Re: [NTG-context] Listings

2008-10-02 Thread Mohamed Bana
Wolfgang Schuster wrote: > > \setupcolors[state=start] > > \definetyping[JAVA][option=JV] > > \setuptyping >[JAVA] >[numbering=line] > > \starttext > > \startJAVA > > \stopJAVA > > \stoptext > > or > > same preamble as above plus > > \definefloat[listing][listings] > > \start

Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-10-02 Thread Chen Shen
Hi all, Here is a simplistic C syntax highlighter. I hope I've extracted comments/strings/numerics (more or less) correctly. shenchen On Wed, Oct 1, 2008 at 11:44 AM, Chen Shen <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the pointers. It seems that the syntax-highlighter only > need supply

Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-09-30 Thread Chen Shen
Hi, Thanks for the pointers. It seems that the syntax-highlighter only need supply "function buffers.visualizers.mp.flush_line_()", which returns a buffer containing the typesetting commands. Will try playing with it. At the moment, I am looking for the feature with \setuptyping[option=commands].

Re: [NTG-context] Listings

2008-09-30 Thread Hans Hagen
Chen Shen wrote: > Hi Wolfgang, > > I guess you are referring to mkii features. It seems that formatting > in verbatim doesn't work in mkiv yet, or did I miss out something? > None of the wiki verbatim examples worked for me. it's on the todo ... only tex and mp should work

Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-09-30 Thread Wolfgang Schuster
Am 30.09.2008 um 18:37 schrieb Chen Shen: > Hi Wolfgang, > > I guess you are referring to mkii features. It seems that formatting > in verbatim doesn't work in mkiv yet, or did I miss out something? > None of the wiki verbatim examples worked for me. Syntax hyghlighting is implemented in differe

Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-09-30 Thread Chen Shen
Hi Wolfgang, I guess you are referring to mkii features. It seems that formatting in verbatim doesn't work in mkiv yet, or did I miss out something? None of the wiki verbatim examples worked for me. regards, shenchen On Mon, Sep 29, 2008 at 2:16 AM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: >

Re: [NTG-context] Listings

2008-09-28 Thread Wolfgang Schuster
Am 28.09.2008 um 23:23 schrieb Wolfgang Schuster: > > Am 28.09.2008 um 22:42 schrieb Mohamed Bana: > >> Wolfgang Schuster wrote: >>> Am 28.09.2008 um 19:34 schrieb Mohamed Bana: >>> Aditya Mahajan wrote: > Hi everyone, > > I finished my thesis, writing both my thesis and my prese

Re: [NTG-context] Listings

2008-09-28 Thread Wolfgang Schuster
Am 28.09.2008 um 22:42 schrieb Mohamed Bana: > Wolfgang Schuster wrote: >> Am 28.09.2008 um 19:34 schrieb Mohamed Bana: >> >>> Aditya Mahajan wrote: Hi everyone, I finished my thesis, writing both my thesis and my presentation using ConTeXt. Aditya >>> :). But

Re: [NTG-context] Listings

2008-09-28 Thread Mohamed Bana
Wolfgang Schuster wrote: > Am 28.09.2008 um 19:34 schrieb Mohamed Bana: > >> Aditya Mahajan wrote: >>> Hi everyone, >>> >>> I finished my thesis, writing both my thesis and my presentation >>> using >>> ConTeXt. >>> >>> Aditya >> :). But there's a still something missing that I need before I ev