Open main menu

Changes

3,896 bytes removed ,  07:21, 4 September 2020
m
Remove duplicate syntax table
}}
== [[Help:Reference|Syntax]] (autogenerated) ==<table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd"syntax>\setuptyping<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td> </tr> <tr valign="top" class="first"> <td class="cmd">[...]</td> <td>file typing name </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:space|space]]</td> <td>[[Command/value:on|on]] [[Command/value:off|off]] [[Command/value:fixed|fixed]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:page|page]]</td> <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:option|option]]</td> <td>[[Command/value:slanted|slanted]] [[Command/value:normal|normal]] [[Command/value:commands|commands]] [[Command/value:color|color]] [[Command/value:none|none]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:text|text]]</td> <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:icommand|icommand]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:vcommand|vcommand]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:ccommand|ccommand]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:before|before]]</td> <td>[[Command/value:command|command]] </tdsyntax> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:after|after]]</td> <td>[[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:margin|margin]]</td> <td>[[Command/value:dimension|dimension]] [[Command/value:standard|standard]] [[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:evenmargin|evenmargin]]</td> <td>[[Command/value:dimension|dimension]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:oddmargin|oddmargin]]</td> <td>[[Command/value:dimension|dimension]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:blank|blank]]</td> <td>[[Command/value:dimension|dimension]] [[Command/value:small|small]] [[Command/value:medium|medium]] [[Command/value:big|big]] [[Command/value:standard|standard]] [[Command/value:halfline|halfline]] [[Command/value:line|line]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:escape|escape]]</td> <td>[[Command/value:character|character]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:tab|tab]]</td> <td>[[Command/value:number|number]] [[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:indentnext|indentnext]]</td> <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:style|style]]</td> <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:color|color]]</td> <td>[[Command/value:name|name]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:palet|palet]]</td> <td>[[Command/value:name|name]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:lines|lines]]</td> <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:hyphenated|hyphenated]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:empty|empty]]</td> <td>[[Command/value:yes|yes]] [[Command/value:all|all]] [[Command/value:no|no]] </td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:numbering|numbering]]</td> <td>[[Command/value:line|line]] [[Command/value:file|file]] [[Command/value:no|no]] </td> </tr></table>
== Description ==
** yes: no hyphenation and left aligned text (align key is ignored)
** hyphenated: hyphenation
* range** {2,5}: line 2 to 5** {2,+3}: line 2 to 5** {label:start,label:end}: from label:start to label:end (comments in code) * strip** yes: Remove leading white space while keeping relative indentation between lines. The <code>option</code> option is for the type of colorization. E.g., to turn off colorization in <code>\startLUA</code> blocks:<pre>\setuptyping[LUA][option=]</pre> 
== 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>
* {{cmd|starttyping}} to print lines verbatim
* {{cmd|definetyping}} to define a custom typing environment
* {{src|buff-ver.mkiv}} source code
* {{cmd|setuplinenumbering}}
== Help from ConTeXt-Mailinglist/Forum ==