From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34508 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Syntax highlighted output Date: Mon, 30 Apr 2007 00:30:21 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177907516 17910 80.91.229.12 (30 Apr 2007 04:31:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2007 04:31:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 30 06:31:54 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 1HiNYH-0005Ri-9B for gctc-ntg-context-518@m.gmane.org; Mon, 30 Apr 2007 06:31:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A7E61200A5; Mon, 30 Apr 2007 06:31:52 +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 28456-05-2; Mon, 30 Apr 2007 06:31:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48C402008F; Mon, 30 Apr 2007 06:31:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 001142008F for ; Mon, 30 Apr 2007 06:31:43 +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 28456-05 for ; Mon, 30 Apr 2007 06:31:41 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id B2E4E1FDE3 for ; Mon, 30 Apr 2007 06:30:24 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 463570DF.26C04.3995 ; 30 Apr 2007 00:30:23 -0400 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:34508 Archived-At: On Sun, 29 Apr 2007, Chris Rawnsley wrote: > On 29/04/07, Aditya Mahajan wrote: >> On Sun, 29 Apr 2007, Aditya Mahajan wrote: >>> Well, then I need to make some more changes in the module. Since, you >>> are up against a deadline right now, and are willing to suffer the >>> delay caused by this module, I will trying hacks to make this work. >> >> Eh.. I meant, "I will _stop_ trying hacks to make this work." > > That's cool. I think it works *more* than adaquetly as it stands now. > >> Hopefully, the next release of vim module will have a robust solution. > > Maybe if you ripped out the syntax highlighting part of ViM you could > make a program with faster start up and execution. This is way beyond my technical skills. > Alternatively, you could use something like Scintilla ( > http://scintilla.sourceforge.net/ ). I used vim since that is the only editor that I use and know well. In principle, any editor component can be used. If you know how to get Scintilla to generated a parsed output of its syntax highlighting, it is easy to use scintilla instead of vim. The trouble is, I do not know much about scintilla. > If you could add some mechinisms for recognising cached files. > There are always *-vimsyntax.tmp these files created. Maybe on first > runs of TeXexec these should always be created and overwrite ones left > over. Then when TeXexec repeats itself however many times it does, it > just reads from those *-vimsyntax.tmp files. I'm sure you already have > some ideas of your own though ;) There was a bad design decision in the module, which kind of makes this difficult. When I look at the whole thing again, I will try to do it in a way so that the files are not parsed on every run. There is also the option of using texmfstart --ifchanged, so that vim is called only if the file has changed. The main delay is in starting up and stopping vim. So, another option will be to convert all the files in a single shot at the end of a run, and then include them later. Last time I could not get these to work. But now that someone else is also using the module, I will give it a shot again. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________