From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44472 Path: news.gmane.org!not-for-mail From: "Chen Shen" Newsgroups: gmane.comp.tex.context Subject: Re: Listings (was: Experience on writing a thesis with MKIV) Date: Wed, 1 Oct 2008 11:44:55 +0800 Message-ID: <48af9a710809302044v8278415pae04102941282945@mail.gmail.com> References: <55EB992D-5348-422A-8105-11A2B2726AF7@gmail.com> <48af9a710809300937g728b8a7aib8b88f0c1e144750@mail.gmail.com> 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: ger.gmane.org 1222832799 3440 80.91.229.12 (1 Oct 2008 03:46:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 03:46:39 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 05:47:37 2008 connect(): Connection refused 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 1Kksga-0005wX-P5 for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 05:47:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DB331FEAF; Wed, 1 Oct 2008 05:46:31 +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 01990-04-16; Wed, 1 Oct 2008 05:45:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA67B1FE15; Wed, 1 Oct 2008 05:45:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCE5B1FE15 for ; Wed, 1 Oct 2008 05:45:30 +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 30993-07-60 for ; Wed, 1 Oct 2008 05:44:56 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by ronja.ntg.nl (Postfix) with ESMTP id 6B0EB1FCB7 for ; Wed, 1 Oct 2008 05:44:55 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so153287nfd.44 for ; Tue, 30 Sep 2008 20:44:55 -0700 (PDT) Original-Received: by 10.210.110.5 with SMTP id i5mr8974106ebc.138.1222832695158; Tue, 30 Sep 2008 20:44:55 -0700 (PDT) Original-Received: by 10.210.67.1 with HTTP; Tue, 30 Sep 2008 20:44:55 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:44472 Archived-At: Hi, Thanks for the pointers. It seems that the syntax-highlighter only need supply "function buffers.visualizers.mp.flush_line_()", which returns a buffer containing the typesetting commands. Will try playing with it. At the moment, I am looking for the feature with \setuptyping[option=commands]. I saw "\mksetupcommandsintype" defined, and "buffers.visualizers.enableescape = true" set in core-ver.mkiv, but it isn't handled in the default visualizer. ------------------- \starttext \setuptyping[option=commands] \starttyping abc <> <> /BTEX{\sl abc}/ETEX \stoptyping \stoptext ------------------- regards, shenchen On Wed, Oct 1, 2008 at 1:15 AM, Wolfgang Schuster wrote: > > Am 30.09.2008 um 18:37 schrieb Chen Shen: > >> Hi Wolfgang, >> >> I guess you are referring to mkii features. It seems that formatting >> in verbatim doesn't work in mkiv yet, or did I miss out something? >> None of the wiki verbatim examples worked for me. > > Syntax hyghlighting is implemented in different ways for MkII > and MkIV, MkII use TeX code while MkIV use Lua code to show > the keywords etc. > > Hans added only files for TeX, MetaPost and Lua in MkIV but > you could write files for more languages, you find the rules in > the verb-*.lua files. > > Regards, > Wolfgang > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________