Difference between revisions of "Command/ starttyping"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \start<i>typing</i> ... \stop<i>typing</i>")
 
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\start<i>typing</i> ... \stop<i>typing</i></tt> are used for ...
+
The instances of  <tt>\start<i>typing</i> ... \stop<i>typing</i></tt> are used for displaying verbatim text.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 36: Line 36:
 
</cd:variants>
 
</cd:variants>
 
<cd:description>
 
<cd:description>
<!-- the long description of the command goes here -->
+
Typeset verbatim code. The instances with uppercase identifiers in them are tailored to specific 'languages' in the verbatim code.
 +
 
 +
Use the {{cmd|typefile}} command to include the contents of a file like a <tt>\starttyping</tt> ... <tt>\stoptyping</tt> block.
 
</cd:description>
 
</cd:description>
 
<cd:examples>
 
<cd:examples>
<!--  command example(s)
+
 
 
<cd:example title="">
 
<cd:example title="">
 +
 +
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>
 +
 
</cd:example>
 
</cd:example>
-->
+
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>
Line 63: Line 74:
 
<cd:wikipage originator="system" page="Category:Verbatim"></cd:wikipage>  
 
<cd:wikipage originator="system" page="Category:Verbatim"></cd:wikipage>  
 
<cd:wikipage originator="system" page="Keywords:Buffer"></cd:wikipage>  
 
<cd:wikipage originator="system" page="Keywords:Buffer"></cd:wikipage>  
 +
<cd:commandref name="typefile"></cd:commandref>
 +
<cd:commandref name="type"></cd:commandref>
 +
<cd:wikipage  page="Verbatim text"></cd:wikipage>
 +
 
</cd:seealso>
 
</cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 13:51, 21 August 2020


\starttyping ... \stoptyping

Summary

The instances of \starttyping ... \stoptyping are used for displaying verbatim text.

Instances

\starttyping ... \stoptyping
\startLUA ... \stopLUA
\startMP ... \stopMP
\startPARSEDXML ... \stopPARSEDXML
\startTEX ... \stopTEX
\startXML ... \stopXML

Settings instance

\startTYPING[...=...,...] ... \stopTYPING
...=...,...inherits from \setuptyping

Settings instance:argument

\startTYPING[...,...] ... \stopTYPING
[...,...]continue

Description

Typeset verbatim code. The instances with uppercase identifiers in them are tailored to specific 'languages' in the verbatim code.

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

Examples

Example 1


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

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


Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: