Difference between revisions of "Command/starttyping"

From ConTeXt wiki
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(autosyntax, links, example)
 
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
<table>
+
 
  <tr>
+
<syntax>starttyping</syntax>
    <td class="cmd">\start<i>typing</i> ... \stop<i>typing</i></td>
 
  </tr>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
 +
Typeset verbatim code.
 +
 +
Usually you will use an instance of "typing", like TEX:
 +
 +
<context source="yes">
 +
\startTEX
 +
Here’s a \emph{stupid} example for \TeX-Code.
 +
\stopTEX
 +
</context>
  
  
 
== Comment ==
 
== Comment ==
Use the {{cmd|typefile}} command to include the contents of a file in the <tt>\starttyping</tt> ... <tt>\stoptyping</tt> block.
+
Use the {{cmd|typefile}} command to include the contents of a file like a <tt>\starttyping</tt> ... <tt>\stoptyping</tt> block.
  
 
== Example ==
 
== Example ==
Line 22: Line 28:
 
== See also ==
 
== See also ==
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
 +
* {{cmd|setuptyping}}
 +
* {{cmd|startTEX}}
 +
* {{cmd|typefile}}
 +
* {{cmd|type}}
 +
* [[Verbatim text]]
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Latest revision as of 07:07, 14 October 2019

\starttyping

Syntax

\starttyping[...=...,...] ... \stoptyping
...=...,...inherits from \setuptyping


\starttyping[...=...,...] ... \stoptyping
instance of \starttyping


\starttyping[...,...] ... \stoptyping
[...,...]continue


\starttyping[...,...] ... \stoptyping
instance of \starttyping


Description

Typeset verbatim code.

Usually you will use an instance of "typing", like TEX:

\startTEX
Here’s a \emph{stupid} example for \TeX-Code.
\stopTEX


Comment

Use the \typefile command to include the contents of a file like a \starttyping ... \stoptyping block.

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: