Hello Wolfgang, after a few attempts that didn't work I copy-pasted the
example from the wiki:
\definetyping[C][option=commands]\startC
#include
int main(){
return 0;
/BTEX{\em unreachedCode;}/ETEX}\stopC
This did not work.
However following the example you provided this works perfectly! Many thanks.
On Sun, Mar 15, 2020 at 6:26 AM wrote:
> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Source Code with Bolded Keywords (Yves Cloutier)
>2. Re: Source Code with Bolded Keywords (Wolfgang Schuster)
>3. Quizz (Fabrice Couvreur)
>4. Re: Quizz (Henning Hraban Ramm)
>5. METAPOST vardef returning multiple and non-numeric types as a
> single answer? (Gerben Wierda)
>
>
> ------
>
> Message: 1
> Date: Sat, 14 Mar 2020 11:54:31 -0400
> From: Yves Cloutier
> To: mailing list for ConTeXt users
> Subject: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
> j5f28-8qv3ykrp+ev+ukrf0q+sp3mabskapxbkvn956...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I am trying to typeset source code for a custom programming language and
> would like to have the keywords in bold text.
>
> I tried following the example found here regarding verbatim displays:
>
> https://www.contextgarden.net/Verbatim_text#Displayed_text
>
> Specifically the C example, however this does not seem to work. No
> formatting is applied to my keywords.
>
> Just wondering if the way to do it has changed or if there are other
> examples I could look at to compare with what I'm doing.
>
> Regards,
>
> yc
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200314/d14dd25f/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Sat, 14 Mar 2020 20:03:34 +0100
> From: Wolfgang Schuster
> To: mailing list for ConTeXt users , Yves Cloutier
>
> Subject: Re: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Yves Cloutier schrieb am 14.03.2020 um 16:54:
> > Hello,
> >
> > I am trying to typeset source code for a custom programming language and
> > would like to have the keywords in bold text.
> >
> > I tried following the example found here regarding verbatim displays:
> >
> > https://www.contextgarden.net/Verbatim_text#Displayed_text
> >
> > Specifically the C example, however this does not seem to work. No
> > formatting is applied to my keywords.
>
> Can you provide a minimal example what you have tried.
>
> > Just wondering if the way to do it has changed or if there are other
> > examples I could look at to compare with what I'm doing.
>
> \starttext
>
> \starttyping[escape=yes]
> This is /BTEX\bf formatted/ETEX text.
> \stoptyping
>
> \starttyping[escape={<<,>>}]
> This is <<\bf formatted>> text.
> \stoptyping
>
> \starttyping[escape={}]
> This is text.
> \stoptyping
>
> \stoptext
>
> Wolfgang
>
>
> --
>
> Message: 3
> Date: Sun, 15 Mar 2020 10:34:43 +0100
> From: Fabrice Couvreur
> To: mailing list for ConTeXt users
> Subject: [NTG-context] Quizz
> Message-ID:
> smfmjke3lc_-ptxwhw09g+ultk1...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> With the Coronavirus pandemic, my school will close like all the others. We
> chose to work with Microsoft Teams. I know how to file Math exercises
> written with ConteXt and export to pdf format. Is it possible with ConteXt
> to create interactive Quizz?
> Thank you
> Fabrice
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/17fa9887/attachment-0001.htm
> >
>
> --
>
> Message: 4
> Date: Sun, 15 Mar 2020 10:46:17 +0100
> From: Henning Hraban Ramm
> To: ntg-context@ntg.nl
>