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
___________________________________________________________________________________
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
___________________________________________________________________________________