From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22341 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: some highlighted \type-ing Date: Wed, 7 Sep 2005 17:27:01 +0200 Message-ID: <6faad9f00509070827188caf7@mail.gmail.com> References: <6faad9f005090608265d273dda@mail.gmail.com> <431DB87E.5020001@elvenkind.com> <431DC58C.5000402@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1126106984 4961 80.91.229.2 (7 Sep 2005 15:29:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2005 15:29:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 07 17:29:35 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 1ED1pN-0004Y3-AH for gctc-ntg-context-518@m.gmane.org; Wed, 07 Sep 2005 17:27:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E29F9127B1; Wed, 7 Sep 2005 17:27:08 +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 06335-10-3; Wed, 7 Sep 2005 17:27:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2DBFC127C4; Wed, 7 Sep 2005 17:27:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5391D127C4 for ; Wed, 7 Sep 2005 17:27:03 +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 06335-10-2 for ; Wed, 7 Sep 2005 17:27:02 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by ronja.ntg.nl (Postfix) with ESMTP id 78DAF127B1 for ; Wed, 7 Sep 2005 17:27:02 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id n15so522382nfc for ; Wed, 07 Sep 2005 08:27:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NhTQjVqCRV6QpXDeT8qdkiolJgRNWGARAn5IkCMVmKbzgVP8Io6fy8pBmJxejCaT4/6+7aw2rZXEoABzRbg6rEvKGCIAIU9N8jtcQm94B6C1QxCvVgXOOualVXIJJ44czNSMrf8fNQkbC2ez0QdauHfNppmCMjBpeFzNy5jKJpw= Original-Received: by 10.49.2.10 with SMTP id e10mr380882nfi; Wed, 07 Sep 2005 08:27:01 -0700 (PDT) Original-Received: by 10.48.247.14 with HTTP; Wed, 7 Sep 2005 08:27:01 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <431DC58C.5000402@wxs.nl> Content-Disposition: inline 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:22341 Archived-At: Hans Hagen wrote: > > Mojca Miklavec wrote: > > > >> And another request for Taco: with option=3DTEX, the '%' are typeset > >> with yellowish gray, while the actual comments remain black. How can I > >> make the whole comment gray? > > > consider it a misfeature -) >=20 > % the next one was \string, but this prevents coloring, one can make > % it \string again if needed >=20 > \let\protectedfirsttype\relax >=20 > \bgroup > \catcode`\<=3D\active > \catcode`\>=3D\active > \gdef\doprotectfirsttype > {\ifx\next<% > \let\next\relax > \else\ifx\next\bgroup > \let\next\relax > \else\ifx\next\egroup % takes care of \type{} > \let\next\relax > \else\ifx\next\activeleftargument > \let\next\relax > \else > \let\next\protectedfirsttype > \fi\fi\fi\fi > \next} > \egroup What exactly should this code do? Was it supposed to change the behaviour o= f \startTEX \abc % comment % comment \stopTEX or something else? Thank you, Mojca