Changes

Jump to navigation Jump to search
no edit summary
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=definetyping
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definetyping</syntax>
== [[Help:Reference|Syntax]] ==
<tr valign="top" class="second">
<td class="cmd">[...,...=...,...]</td>
<td>see [[Reference/enCommand/setuptyping|\setuptyping]] </td>
</tr>
</table>
 
== Description ==
Defines a new typing environment and the corresponding <tt>\start</tt> and <tt>\stop</tt> commands. The first argument is the name of the typing environment, the second argument are the options to apply for this environment.
Note that difference with [[{{cmd:|setuptyping]]}}: [[{{cmd:|definetyping]] }} defines a new typing environment, while [[{{cmd:|setuptyping]] }} changes the options of an existing typing environment (including the default environment that you get when using [[{{cmd:|starttyping]]}}).
== Example ==
<pre class="example"texcode>
\definetyping
[TTinput]
[before={\startframedtext[width=\makeupwidth,
background=screencolor, backgroundscreenbackgroundcolor=.8lightgray]},
after={\stopframedtext}]
\starttext
\stopTTinput
\stoptext
</pretexcode>
== See also ==
<!-{{cmd|setuptyping}} == Help from ConTeXt- something like [[cmdMailinglist/Forum ==All issues with:goto{{Forum|\goto]] -->{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enVerbatim Text|definetyping]]

Navigation menu