From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24102 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: An idea Date: Sun, 04 Dec 2005 20:00:34 +0100 Message-ID: <43933CD2.4010205@wxs.nl> References: <20051201162914.GA14497@fly.srk.fer.hr> <20051202165636.GA8858@puritan.petwork> <20051202174653.GB3376@fly.srk.fer.hr> <20051202184337.GB8858@puritan.petwork> <20051203194557.GA8903@puritan.petwork> <439220C0.5000007@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133724367 15992 80.91.229.2 (4 Dec 2005 19:26:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Dec 2005 19:26:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 04 20:26:07 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 1EizTu-0004Nz-T5 for gctc-ntg-context-518@m.gmane.org; Sun, 04 Dec 2005 20:25:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A88F3127EC; Sun, 4 Dec 2005 20:25:06 +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 30785-03-2; Sun, 4 Dec 2005 20:25:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0B3712795; Sun, 4 Dec 2005 20:25:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BE9C12791 for ; Sun, 4 Dec 2005 20:25:01 +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 30785-03 for ; Sun, 4 Dec 2005 20:24:58 +0100 (CET) Original-Received: from controller-1 (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with ESMTP id 3DCDE12795 for ; Sun, 4 Dec 2005 20:00:37 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 6326 for ; Sun, 04 Dec 2005 20:06:09 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <439220C0.5000007@creutzig.de> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:24102 Archived-At: Christopher Creutzig wrote: >Nikolai Weibull wrote: > > =20 > >>this than I have is welcome to finish it. The \highlight command shoul= d >>be defined something like this (pseudo-tex-code): >> >>\pdef\highlight[#1]{#2}% >> {\bgroup >> \setupcolorforgroup[#1]% >> \type{#2}% >> \egroup} >> >>#1 is a group name, such as Statement, Operator, or Comment. #2 may >>contain multiple lines, and I don=EF=BF=BDt know how well this will wor= k on the >>TeX side. It may also contain special characters like {, #, &, and so >>on. Suggestions? >> =20 >> > > The most simple one I expect to work would be > >\def\highlight[#1]{% > \bgroup > \setuphighlightcolors[{#1}]% never forget those {}, >% % since [] aren't balanced! > \processinlineverbatim\egroup}% \egroup is an argument to >% % \processinlineverbatim here > > > (I did have some mildly elaborate low-level code here, but upon >searching for the ConTeXt way of switching of everything, I came upon >\processinlineverbatim, which probably does everything you want. If it >does not, please come back and I'll send you something more low-level >that should.) > =20 > there is no need for verbatim mode when you convert anyway! Hans