From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32312 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Making a verbatim file for another language Date: Wed, 27 Dec 2006 16:41:03 -0500 (EST) Message-ID: References: <58E326FC-9E9E-487E-A9D4-2CCA840F0E4D@mac.com> <458FAA34.7030507@elvenkind.com> <6faad9f00612261047s2f12559es8b3d33e54261a70@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167255700 5101 80.91.229.10 (27 Dec 2006 21:41:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Dec 2006 21:41:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 27 22:41:38 2006 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 dough.gmane.org with esmtp (Exim 4.50) id 1GzgWi-0001NA-JZ for gctc-ntg-context-518@m.gmane.org; Wed, 27 Dec 2006 22:41:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECFF620095; Wed, 27 Dec 2006 22:39:32 +0100 (CET) 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 24534-08-3; Wed, 27 Dec 2006 22:39:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 930B520053; Wed, 27 Dec 2006 22:39:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E1B320095 for ; Wed, 27 Dec 2006 22:39:18 +0100 (CET) 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 24534-08-2 for ; Wed, 27 Dec 2006 22:39:12 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id 0D36320045 for ; Wed, 27 Dec 2006 22:39:11 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 4592E86F.7C7D9.26473 ; 27 Dec 2006 16:41:04 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:32312 Archived-At: On Tue, 26 Dec 2006, cormullion@mac.com wrote: > After looking at these files a bit more closely, I decided I didn't > have a week to spare. Too much to learn and too few instructions. For > now I'm sticking with plain old black verbatim code listings. > Sometimes one has to set one's sights a little lower...! :-) Is there vim syntax file for your language? Mojca and I are working on a module which uses VIM syntax highlighting to pretty print verbatim files. It is almost release quality right now. The following features are working. You can define \defineVIMtyping [MATLAB] [syntax=matlab] and then use \startMATLAB .... \stopMATLAB where the result is pretty printed. A whole file can be printed using \definetypeVIMfile [typeMATLAB] [syntax=matlab] \typeMATLAB[file.m] You can select the lines of the file to print, though there is no support for showing linenumbers yet. The script is slooow, and the delay is noticable for anything close to 1000 lines. But a few 100 lines should work just fine. If you have vim and are interested in testing, you can be the first tester of the module :) Aditya