ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Source Code with Bolded Keywords
@ 2020-03-14 15:54 Yves Cloutier
  2020-03-14 19:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Yves Cloutier @ 2020-03-14 15:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 792 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Source Code with Bolded Keywords
  2020-03-14 15:54 Source Code with Bolded Keywords Yves Cloutier
@ 2020-03-14 19:03 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2020-03-14 19:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Yves Cloutier

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-14 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 15:54 Source Code with Bolded Keywords Yves Cloutier
2020-03-14 19:03 ` Wolfgang Schuster

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).