From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: In-line syntax highlighting for type
Date: Wed, 25 Oct 2006 10:17:34 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0610251016150.3532@nqvgln> (raw)
In-Reply-To: <Pine.WNT.4.63.0610250955160.3532@nqvgln>
On Wed, 25 Oct 2006, Aditya Mahajan wrote:
> On Wed, 25 Oct 2006, Hans Hagen wrote:
>
>> Aditya Mahajan wrote:
>>> Hi,
>>>
>>> How can I define a command that is the inline version of \startTEX ...
>>> \stopTEX. (I need to show inline commands in color). There had been a
>>> discussion on this in the past, and Taco had suggested a solution
>>>
>>> http://archive.contextgarden.net/thread/20050907.093522.baf795f5.en.html
>>>
>>> which is also posted on the wiki.
>>>
>>>
>>> http://wiki.contextgarden.net/Verbatim_text#In-line_text
>>>
>>> However, due to the recent changes in verbatim code, that solution no
>>> longer works. Can anyone suggest how to fix it?
>>>
>> \setupcolors[state=start]
>>
>> \setuptype[option=TEX]
>>
>> \definetype[typeTEX][option=tex]
>>
>> \starttext
>>
>> \type+\type{\type is a wonderful macro}+, isn't it?
>>
>> \typeTEX+\typeTEX{\typeTEX is a wonderful macro}+, isn't it?
>>
>> \stoptext
>
> Thanks, that looks easy :-)
>
> However, there seems to be a bug, sometimes the color spills across
> the type boundary.
Is is possible that everything written with \tex{command} is also
printed in color? I do not want to change \tex{command} to
\type{\command} since \tex is more robust (No catcode trickery and
stuff).
Aditya
next prev parent reply other threads:[~2006-10-25 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-25 0:11 Aditya Mahajan
2006-10-25 7:54 ` Hans Hagen
2006-10-25 13:57 ` Aditya Mahajan
2006-10-25 14:17 ` Aditya Mahajan [this message]
2006-10-25 14:28 ` Mojca Miklavec
2006-10-25 16:38 ` Hans Hagen
2006-10-25 17:32 ` Hans Hagen
2006-10-25 18:08 ` Hans Hagen
2006-10-25 18:28 ` Aditya Mahajan
2006-10-25 19:03 ` Hans Hagen
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=Pine.WNT.4.63.0610251016150.3532@nqvgln \
--to=adityam@umich.edu \
--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).