From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22357 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: some highlighted \type-ing Date: Thu, 08 Sep 2005 11:55:47 +0200 Message-ID: <43200AA3.1010908@elvenkind.com> References: <6faad9f005090608265d273dda@mail.gmail.com> <431DB87E.5020001@elvenkind.com> <6faad9f00509060901d97f6d2@mail.gmail.com> <431EB45A.7010207@elvenkind.com> <6faad9f0050907075370287cab@mail.gmail.com> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126173416 25710 80.91.229.2 (8 Sep 2005 09:56:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2005 09:56:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 08 11:56:45 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 1EDJ8O-0007k7-P6 for gctc-ntg-context-518@m.gmane.org; Thu, 08 Sep 2005 11:55:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 23565127D5; Thu, 8 Sep 2005 11:55:56 +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 18098-01; Thu, 8 Sep 2005 11:55:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95065127CC; Thu, 8 Sep 2005 11:55:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D6E19127CC for ; Thu, 8 Sep 2005 11:55:50 +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 17953-07-2 for ; Thu, 8 Sep 2005 11:55:49 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 51C55127BF for ; Thu, 8 Sep 2005 11:55:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id D17251837E for ; Thu, 8 Sep 2005 11:55:48 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27655-01 for ; Thu, 8 Sep 2005 11:55:47 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 9AF6118201 for ; Thu, 8 Sep 2005 11:55:47 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f0050907075370287cab@mail.gmail.com> X-Virus-Scanned: by amavisd-new at elvenkind.net 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:22357 Archived-At: Mojca Miklavec wrote: > Taco, you sent some patch for XML syntax highlighting some time ago. > > I don't know if you fixed this one as well: > > The both minus signs in "-->" are highlighted wrong as well. The code > inside is gray, but it would be great to have both > delimiters highligted as "comment" as well. With this simple patch (only two new commands), both sets of dashes are blue: \input verb-xml \unprotect \gdef\dododoXMLtypeonefive#1#2% {\getprettydata{#2}% \ifnum\prettytype=11 \endofpretty \beginofpretty[\!!prettythree]%TH: NEW \getpretty{\prev}#1\empty \endofpretty %TH: NEW \global\inXMLcommentfalse#2% \else \getpretty{\prev}#1#2% \fi} \protect This makes comments behave like PI instructions, but maybe you want the entire comment grey, including the leading '' ? That would be require a much larger patch though. Taco