From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24056 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: An idea Date: Fri, 2 Dec 2005 19:43:37 +0100 Message-ID: <20051202184337.GB8858@puritan.petwork> References: <20051201162914.GA14497@fly.srk.fer.hr> <20051202165636.GA8858@puritan.petwork> <20051202174653.GB3376@fly.srk.fer.hr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133549187 881 80.91.229.2 (2 Dec 2005 18:46:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2005 18:46:27 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 02 19:46:25 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiFsk-0000q8-Uq for gctc-ntg-context-518@m.gmane.org; Fri, 02 Dec 2005 19:43:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C1A81291B; Fri, 2 Dec 2005 19:43:42 +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 18785-05-4; Fri, 2 Dec 2005 19:43:38 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C23C128F3; Fri, 2 Dec 2005 19:43:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 694F9128F3 for ; Fri, 2 Dec 2005 19:43:37 +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 18785-05-3 for ; Fri, 2 Dec 2005 19:43:36 +0100 (CET) Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by ronja.ntg.nl (Postfix) with ESMTP id 5FF2D128D6 for ; Fri, 2 Dec 2005 19:43:36 +0100 (CET) Original-Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep01.bredband.com with ESMTP id <20051202184335.FAGO676.mxfep01.bredband.com@ironport.bredband.com> for ; Fri, 2 Dec 2005 19:43:35 +0100 Original-Received: from c-fa2b70d5.018-10-67626713.cust.bredbandsbolaget.se (HELO puritan.petwork) ([213.112.43.250]) by ironport.bredband.com with ESMTP; 02 Dec 2005 19:44:06 +0100 X-BrightmailFiltered: true X-IronPort-AV: i="3.99,207,1131318000"; d="scan'208"; a="15002254:sNHT23463531" Original-Received: by puritan.petwork (Postfix, from userid 1000) id 4485CADFE5; Fri, 2 Dec 2005 19:43:37 +0100 (CET) Original-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <20051202174653.GB3376@fly.srk.fer.hr> User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24056 Archived-At: Zeljko Vrba wrote: > On Fri, Dec 02, 2005 at 05:56:36PM +0100, Nikolai Weibull wrote: > > We were planning on using Vim for preprocessing things like this > > instead > Vim for preprocessing? Isn't it a bit too painful compared to using a > "real" programming language? You misunderstand. Vim can easily be made to output the highlighting it would apply to a document on the display to something else, e.g., outputting TeX directives instead. A subthread on the subject can be found here: http://www.ntg.nl/pipermail/ntg-context/2005/012885.html It would require very little programming. syntax/2html.vim, which converts the buffer to a HTML document with syntax highlighting, is 526 lines in the current CVS incarnation. A syntax/2context.vim would be even shorter, perhaps 150 to 200 lines. If I find the time I=E2=80=99ll = write something this weekend. I=E2=80=99m catching a could though, so I might = not :-(. (Note: This would thus allow highlighted code for any format Vim understand, which is currently over 450!) nikolai --=20 Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}