From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21290 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: TeX + Metapost syntax highlighting in Vim Date: Fri, 8 Jul 2005 23:32:05 +0200 Message-ID: <20050708213205.GB5397@puritan.pnetwork> References: <42CEA592.8010603@gmail.com> <42CEBDB6.5030702@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120858336 12093 80.91.229.2 (8 Jul 2005 21:32:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2005 21:32:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 08 23:32:13 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 1Dr0SC-0001dR-MW for gctc-ntg-context-518@m.gmane.org; Fri, 08 Jul 2005 23:32:12 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C9891289D; Fri, 8 Jul 2005 23:32:12 +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 16877-01-4; Fri, 8 Jul 2005 23:32:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59B881289A; Fri, 8 Jul 2005 23:32:08 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B8FF1289A for ; Fri, 8 Jul 2005 23:32:07 +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 16877-01-3 for ; Fri, 8 Jul 2005 23:32:06 +0200 (CEST) Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by ronja.ntg.nl (Postfix) with ESMTP id 6DDB212897 for ; Fri, 8 Jul 2005 23:32:06 +0200 (CEST) Original-Received: from puritan.petwork ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050708213206.EHPR26070.mxfep01.bredband.com@puritan.petwork> for ; Fri, 8 Jul 2005 23:32:06 +0200 Original-Received: by puritan.petwork (Postfix, from userid 1000) id CDCECADFEA; Fri, 8 Jul 2005 23:32:05 +0200 (CEST) Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <42CEBDB6.5030702@wxs.nl> User-Agent: Mutt/1.5.8i 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21290 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21290 (Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.) Hans Hagen wrote: > Mojca Miklavec wrote: > > If you have something like > > \startMPpage > > draw ... > > \stopMPpage, > > it will do the syntax highligting for metapost inside the \start-\stop > > pair. That's a great idea, I'll add that to my version > > I downloaded SpellChecker and SuperTab (autocomplete) today from the vim > > website and it works great! (see http://contextgarden.net/Vim and feel > > free to add any useful stuff there) Version 7 has a spell-checker built in. > > I was astonished as I saw autocomplete work. There are only a couple of > > lines with an extraordinary functionality. I think that if someone > > writes a good script to convert texshow to vim syntax highlighting > > script, than autocomplete will be able to provide good hints for all the > > existing commands in ConTeXt and the corresponding parameters. I'll try > > to see what I can do, but please don't excpect any results too soon. There's always the ever-simple CTRL-P/CTRL-N as well. > What is the syntax? I can exten ctstools to spit out a vim keyword table; > it already handles scite, jedit and bbedit so adding vim is not undoable Download vim and run :help syntax. But the short version is syn keyword contextKeyword ... ^-- group name ^-- keywords But that won't work for stuff beginning with \\. Then you'll have to use regexes and syn match contextKeyword ... ^-- regex Exactly what kind of keyword table are we talking about?, nikolai -- 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);}