From: Hans Hagen <pragma@wxs.nl>
Subject: Re: some highlighted \type-ing
Date: Tue, 06 Sep 2005 18:36:28 +0200 [thread overview]
Message-ID: <431DC58C.5000402@wxs.nl> (raw)
In-Reply-To: <431DB87E.5020001@elvenkind.com>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-09-06 16:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 15:26 Mojca Miklavec
2005-09-06 15:40 ` Taco Hoekwater
2005-09-06 16:01 ` Mojca Miklavec
2005-09-06 16:21 ` Taco Hoekwater
2005-09-07 9:35 ` Taco Hoekwater
2005-09-07 14:53 ` Mojca Miklavec
2005-09-07 16:13 ` Nikolai Weibull
2005-09-08 9:55 ` Taco Hoekwater
2005-09-08 11:25 ` Adobe reader 7.0.1 for linux luigi.scarso
2005-09-08 12:05 ` Taco Hoekwater
2005-09-08 13:41 ` Hans Hagen
2005-09-06 16:36 ` Hans Hagen [this message]
2005-09-07 15:27 ` some highlighted \type-ing Mojca Miklavec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=431DC58C.5000402@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).