Re: [NTG-context] Identifying context files

2006-02-10 Thread Aditya Mahajan
--- On Feb 4, Mojca Miklavec wrote --- On 2/2/06, Aditya Mahajan wrote: I use (g)vim to edit both context and latex files. Unfortunately, both of them usually have *.tex extension. This mean that detecting filetype from extension is not possible, so one should look into the contents of the

Re: [NTG-context] Identifying context files

2006-02-04 Thread Mojca Miklavec
On 2/2/06, Aditya Mahajan wrote: I use (g)vim to edit both context and latex files. Unfortunately, both of them usually have *.tex extension. This mean that detecting filetype from extension is not possible, so one should look into the contents of the file to see if it a context file or not.

Re: [NTG-context] Identifying context files

2006-02-03 Thread Hans Hagen
Thomas A. Schmitz wrote: That sounds like an excellent idea, and I'd be very grateful to have such a detector. As to keywords: most of my ConTeXt files start with \enableregime; you may want to add this to your list. Best Thomas On Feb 3, 2006, at 3:17 AM, Aditya Mahajan wrote:

Re: [NTG-context] Identifying context files

2006-02-03 Thread Taco Hoekwater
Hans Hagen wrote: checking does not take much time, for instance in scite, i check till i know; also (probably goes unnoticed), texexec does soem checking: it needs to figure out the interface: While on that subject, can we make texexec honour % format={latex,pdflatex,plain,pdfetex}

Re: [NTG-context] Identifying context files

2006-02-03 Thread Hans Hagen
Taco Hoekwater wrote: Hans Hagen wrote: checking does not take much time, for instance in scite, i check till i know; also (probably goes unnoticed), texexec does soem checking: it needs to figure out the interface: While on that subject, can we make texexec honour %

Re: [NTG-context] Identifying context files

2006-02-03 Thread Aditya Mahajan
On Feb 3, 2006, at 3:17 AM, Aditya Mahajan wrote: 3. Is it enough to check the first 6 line or should I check more. I do not want to check more lines as this will make the detection slower (by a few mili secs). On Fri, 3 Feb 2006, Hans Hagen wrote: checking does not take much time, for

Re: [NTG-context] Identifying context files

2006-02-03 Thread Hans Hagen
Aditya Mahajan wrote: On Feb 3, 2006, at 3:17 AM, Aditya Mahajan wrote: 3. Is it enough to check the first 6 line or should I check more. I do not want to check more lines as this will make the detection slower (by a few mili secs). On Fri, 3 Feb 2006, Hans Hagen wrote:

[NTG-context] Identifying context files

2006-02-02 Thread Aditya Mahajan
I use (g)vim to edit both context and latex files. Unfortunately, both of them usually have *.tex extension. This mean that detecting filetype from extension is not possible, so one should look into the contents of the file to see if it a context file or not. I am planning to submit a ftdetect

Re: [NTG-context] Identifying context files

2006-02-02 Thread Thomas A. Schmitz
That sounds like an excellent idea, and I'd be very grateful to have such a detector. As to keywords: most of my ConTeXt files start with \enableregime; you may want to add this to your list. Best Thomas On Feb 3, 2006, at 3:17 AM, Aditya Mahajan wrote: I use (g)vim to edit both context