From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22324 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: some highlighted \type-ing Date: Tue, 06 Sep 2005 18:36:28 +0200 Message-ID: <431DC58C.5000402@wxs.nl> References: <6faad9f005090608265d273dda@mail.gmail.com> <431DB87E.5020001@elvenkind.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 1126024700 13434 80.91.229.2 (6 Sep 2005 16:38:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2005 16:38:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 06 18:38:18 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 1ECgQt-0006Lq-P4 for gctc-ntg-context-518@m.gmane.org; Tue, 06 Sep 2005 18:36:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E0F91280C; Tue, 6 Sep 2005 18:36:27 +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 21745-01; Tue, 6 Sep 2005 18:36:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 666C3127FC; Tue, 6 Sep 2005 18:36:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92C4E127FC for ; Tue, 6 Sep 2005 18:36:20 +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 21682-02 for ; Tue, 6 Sep 2005 18:36:19 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A8EB0127E6 for ; Tue, 6 Sep 2005 18:36:19 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j86GaFDv014290 for ; Tue, 6 Sep 2005 18:36:15 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 8BBF11985E; Tue, 6 Sep 2005 17:44:11 +0200 (CEST) Original-Received: from [10.100.1.15] (unknown [10.100.1.15]) by server-1.pragma-net.nl (Postfix) with ESMTP id 4CFF41940E for ; Tue, 6 Sep 2005 15:44:10 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <431DB87E.5020001@elvenkind.com> X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on mailrelay01 X-Virus-Status: Clean 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:22324 Archived-At: Taco Hoekwater wrote: > > > Mojca Miklavec wrote: > >> Hello, >> >> How can I make highlighted \type-d text? >> I would like \type{\thisTeXcommand[option=something]} to be >> highlighted in TEX style. > > > > \def\typeTEX > {\bgroup > \initializetyping{TEX}% > \startverbatimcolor > \processinlineverbatim\egroup } > > \starttext > \typeTEX{\color[red]} > \stoptext > >> And another request for Taco: with option=TEX, the '%' are typeset >> with yellowish gray, while the actual comments remain black. How can I >> make the whole comment gray? > > > I'll look this up tomorrow, this requires some reworking of > verb-tex.tex consider it a misfeature -) % the next one was \string, but this prevents coloring, one can make % it \string again if needed \let\protectedfirsttype\relax \bgroup \catcode`\<=\active \catcode`\>=\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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------