Difference between revisions of "Command/ starttyping"
< Command
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> | ||
− | + | 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> | ||
− | + | ||
<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
Contents
\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
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:
- \starttyping on the mailing list (all results)
- \starttyping on the mailing list (subject only)
- \starttyping on stack exchange
- \starttyping in ConTeXt's source
- \startLUA on the mailing list (all results)
- \startLUA on the mailing list (subject only)
- \startLUA on stack exchange
- \startLUA in ConTeXt's source
- \startMP on the mailing list (all results)
- \startMP on the mailing list (subject only)
- \startMP on stack exchange
- \startMP in ConTeXt's source
- \startPARSEDXML on the mailing list (all results)
- \startPARSEDXML on the mailing list (subject only)
- \startPARSEDXML on stack exchange
- \startPARSEDXML in ConTeXt's source