Changes

Jump to navigation Jump to search
203 bytes removed ,  17:28, 29 July 2023
replace MkII syntax, fix explanation
== Description ==
Changes options for displaying verbatim text. When called with a single argument, this command changes the options for the default all typing environment as created with environments: {{cmd|starttyping}}, {{cmd|startTEX}} etc. When the optional argument is given, it identifies a specific typing environment (as created with well as {{cmd|definetypingtypefile}}).
With the optional argument, it affects only specific typing environment (as created with {{cmd|setuptypingdefinetyping}} can be used multiple times to change options and options will stay in effect until the end of file).
Note that {{cmd|setuptyping}} also affects can be used multiple times to change options, and options will stay in effect until the display end of the {{cmd|typefile}} commandfile.
* space
== Example ==
 
Note that background=screen,backgroundscreen=.8 is depricated in MKIV and should be replaced by something like background=color,backgroundcolor=lightgray.
<context source=yes>
\setuptyping
[before={\startframedtext[width=\makeupwidthtextwidth, background=screencolor, backgroundscreenbackgroundcolor=.8lightgray]},
after={\stopframedtext}]
\starttext
\starttyping
This is a \test{}
is printed just as I write it
\stoptyping
 \stoptextstartTEXThis is a \test{}\stopTEX
</context>

Navigation menu