Hello Wolfgang, after a few attempts that didn't work I copy-pasted the
example from the wiki:

\definetyping[C][option=commands]\startC
#include <stdio.h>
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 <ntg-context-requ...@ntg.nl> 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 <yves.clout...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Source Code with Bolded Keywords
> Message-ID:
>         <CAGW=
> 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 <wolfgang.schuster.li...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>, Yves Cloutier
>         <yves.clout...@gmail.com>
> Subject: Re: [NTG-context] Source Code with Bolded Keywords
> Message-ID: <c1c6f324-476c-49e5-da9b-2b2dcecdd...@gmail.com>
> 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 <!--\bf formatted--> text.
> \stoptyping
>
> \stoptext
>
> Wolfgang
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 15 Mar 2020 10:34:43 +0100
> From: Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Quizz
> Message-ID:
>         <CACyK-eqU1Yk+bdw2Z0J=
> 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 <te...@fiee.net>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Quizz
> Message-ID: <3afc49c6-f279-49a7-2ef4-f13dacf29...@fiee.net>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:
> > 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?
>
> You can create forms that work in Adobe Reader, but Radiobuttons are
> broken in ConTeXt, and if you want to add validation, then good luck
> getting JavaScript functions to work.
>
> See https://wiki.contextgarden.net/Widgets
>
> It much easier to use web technology (HTML forms).
>
> Best, Hraban
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 15 Mar 2020 11:22:25 +0100
> From: Gerben Wierda <gerben.wie...@rna.nl>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] METAPOST vardef returning multiple and
>         non-numeric types as a single answer?
> Message-ID: <1afd4799-65ff-4574-a9b5-40ba3c532...@rna.nl>
> Content-Type: text/plain; charset="utf-8"
>
> I would like a vardef macro to return the pair of a picture and a bounding
> box. I don't want to use the setbound operator, because as soon as I do
> that, I cannot access the components of the picture anymore with pathpart.
>
> I found metapost vardef returning multiple values <
> https://tex.stackexchange.com/questions/448740/metapost-vardef-returning-multiple-values>
> on StackExchange but that is about returning multiple values of the same
> numeric type. Is it possible to have vardef return a set of (picture, path)
> or (picture, picture) in some way? If not, I need to make two vardef macros
> for each result type.
>
> I tried many things, amongst which:
>
> vardef Foo( expr w, h)
> % define pic
> pic
> end group,begingroup
> % define pic
> pic
> endif
>
> picture foo[]; foo = Foo( 2, 4);
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/3c8000db/attachment.htm
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> ------------------------------
>
> End of ntg-context Digest, Vol 189, Issue 28
> ********************************************
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to