<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\chapter{ä¸ĺ­ä¸ĺˇŽ}

ĺ¨čżä¸ŞäżĄćŻćśäťŁďźććĄŁĺşç°ä¸äşčŽĄçŽćşç¨ĺşćşç&nbsp;çćŽľďźćŻĺžĺ¸¸č§çäşăčżäşäťŁç&nbsp;éčŚäťĽç­ĺŽ˝ĺ­ä˝ĺć&nbsp;ˇćžç¤şďźĺćŻčżĺťçćĺ­ćşçčžĺşďźćčĺć°ććŹćĺ˝ďźVerbatim textďźăä¸şäşčŽŠäťŁç&nbsp;ć´ä¸şćčŻťďźéĺ¸¸éčŚć&nbsp;šćŽç¸ĺşčŻ­ćłĺŻšĺśčżčĄçč˛ć¸˛ćăććśďźčżéčŚĺ¨äťŁç&nbsp;ä¸­ćĺĽä¸äşĺśäťćçĺç´&nbsp;ă

\section{ćĺ˝}

ćĺ˝ćä¸¤ç§ĺ˝˘ĺźďźä¸ç§ćŻä˝äşä¸čĄćĺ­äšĺďźç¨ \type{\type{...}} ćçďźĺŚä¸ç§ćŻä˝äşćŽľč˝äšé´ďźç¨ \type{\starttyping ... \stoptyping} ćçăäžĺŚ

\startsample
\startframedtext[width=\textwidth]
ç¨ C čŻ­č¨ĺä¸ä¸Şç¨ĺşďźčŽŠĺŽĺ¨ĺąĺšä¸ćžç¤şă\type{Hello world!}ăďźäťŁç&nbsp;ĺŚä¸
\starttyping
#include &lt;stdio.h&gt;
int main(void)
{
    printf("Hello world!\n");
    return 0;
}
\stoptyping
\stopframedtext
\stopsample
\typesample

\noindent çťćä¸ş

\start
\setuptyping[before={\blank[line]},after={\blank[line]}]
\getsample
\stop

ä¸čż°ç¤şäžďźä¸äťćźç¤şäşćĺ˝ĺ˝äť¤çĺşćŹç¨ćłďźä˝&nbsp;ĺşčŻĽäšĺ­ŚäźäşĺŚä˝ä˝żç¨ \type{framedtext} çŻĺ˘çťä¸äşĺĺŽšćˇťĺ&nbsp;ć´ç´&nbsp;çčžšćĄă

\section{ĺ¤ćĄ}

äščŽ¸ä˝&nbsp;äšćłčŚä¸ä¸ŞĺćŹććĄŁä¸­ćçĺˇ¨ĺ¤§çćˇĄčč˛ćšćŹĺˇç \type{typing} çŻĺ˘ďźä˝ćŻéčŚäşĺĺŻšçŹŹ \in[metapost] çŤ&nbsp;ä¸­äťçťç \METAPOST\ čŻ­č¨çĺşćŹç¨ćłććäşč§ŁćšĺŻăçť \type{typing} çŻĺ˘ćˇťĺ&nbsp;ć´ç´&nbsp;çĺ¤ćĄĺžĺŽšćĺĺ°ďźčä¸ĺŽäšćŻĺŽç°ĺˇ¨ĺ¤§ćˇĄčč˛ćšćŹĺˇçĺşçĄďźćšćłćŻ

\startsample
\setuptyping
  [before={\startframedtext[width=\textwidth]},
   after={\stopframedtext}]

\starttyping
ĺ¸Śĺ¤ćĄç \starttyping ... \stoptyping
\stoptyping
\stopsample
\typesample
\start
\getsample
\stop

ĺ¨ \type{\setuptyping} ç \type{before} ĺ \type{after} ĺć°ä¸­ďźäšĺŻäťĽć&nbsp;šćŽčŞĺˇąçéćąďźćˇťĺ&nbsp;ĺśäťćçĺ˝äť¤ćä˝&nbsp;čŞĺˇąĺŽäšçĺŽă\CONTEXT\ ĺžĺ¤ĺ˝äť¤ĺ¸Ść \type{before} ĺ \type{after} ĺć°ă

\section{čĄĺˇ}

\type{\setuptyping} ç \type{line} ĺć°ĺŻç¨äşčŽžĺŽäťŁç&nbsp;čĄĺˇăéčż \type{\setuplinenumbering} ĺŻč°ć´čĄĺˇć&nbsp;ˇĺźăäťĽä¸ç¤şäžĺźĺŻäťŁç&nbsp;čĄĺˇďźĺšśĺ°čĄĺˇĺ° \type{typing} çŻĺ˘çčˇçŚťčŽžä¸ş 0.5 emďź

\startsample
\setuplinenumbering[typing][distance=.5em]
\setuptyping
  [numbering=line,
   before={\startframedtext[width=\textwidth]},
   after={\stopframedtext}]

\starttyping
#include &lt;stdio.h&gt;
int main(void)
{
    printf("Hello world!\n");
    return 0;
}
\stoptyping
\stopsample
\typesample
\start
\getsample
\stop

\section{çč˛}

\CONTEXT\ ćäžäşäťŁç&nbsp;čŻ­ćłçč˛ĺč˝ďźäžĺŚĺŻš \TEX\ äťŁç&nbsp;čżčĄçč˛ďź

\startsample
\starttyping[option=TEX]
\starttext
Hello \CONTEXT!
\stoptext
\stoptyping
\stopsample
\typesample
\start
\setuplinenumbering[typing][distance=.5em]
\setuptyping
  [numbering=line,
   before={\startframedtext[width=\textwidth]},
   after={\stopframedtext}]
\getsample
\stop

ä¸ĺš¸çćŻďźçŽĺ \CONTEXT\ äťĺŽç°äş \TEXďź\METAPOSTďźLuaďźXML ç­äťŁç&nbsp;ççč˛ăä¸čżďźĺŻšäş \CONTEXT\ ĺ°ä¸ćŻćçčŻ­č¨ďź\CONTEXT\ ćäžäşćŠĺąćşĺśďźčĽä˝&nbsp;ĺŻš Lua čŻ­č¨ĺĺś Lpeg ĺşććäşč§ŁďźĺŻčŞĺˇąĺ¨ćďźä¸°čĄŁčśłéŁ\cite[code-render]ă

\section{éé¸}

ĺłä˝żä¸ć  Lua ĺ LpegďźĺčĽä˝&nbsp;ä¸ĺŤéşťçŚďźĺŠç¨ \type{\type} ĺ \type{typing} çŻĺ˘çéé¸ďźEscapeďźćşĺśďźäšč˝ĺŽç°äťŁç&nbsp;çč˛ăäžĺŚ

\starttyping[escape=no,option=TEX]
\starttyping[escape=yes]
/BTEX\darkgreen \#include/ETEX &lt;stdio.h&gt;
/BTEX\darkblue int/ETEX main(/BTEX\darkblue void/ETEX)
{
    printf("/BTEX\darkred Hello world!\n/ETEX");
    /BTEX\darkblue return/ETEX 0;
}
\stoptyping
\stoptyping

\noindent çťćä¸ş

\start
\setuptyping
  [before={\startframedtext[width=\textwidth]},
   after={\stopframedtext}]
\starttyping[escape=yes]
/BTEX\darkgreen \#include/ETEX &lt;stdio.h&gt;
/BTEX\darkblue int/ETEX main(/BTEX\darkblue void/ETEX)
{
    printf("/BTEX\darkred Hello world!\n/ETEX");
    /BTEX\darkblue return/ETEX 0;
}
\stoptyping
\stop

ćĺşčŻĽä¸ç´é˝ć˛ĄćĺčŻä˝&nbsp;ďź\CONTEXT\ čŻĽĺŚä˝çťćĺ­çč˛ă\CONTEXT\ é˘ĺŽäšäşä¸äşć&nbsp;ĺé˘č˛ďźĺŻç´ćĽä˝żç¨čżäşé˘č˛çĺĺ­ĺŻšćĺ­čżčĄçč˛ďźäžĺŚă\type{{\magenta ç´Ťč˛}}ăďźçťćä¸şă{\magenta ç´Ťč˛}ăďźäšĺŻäťĽä˝żç¨ \type{\color} ĺ˝äť¤ďźäžĺŚă\type{\color[lightmagenta]{ćľç´Ťč˛}}ăďźçťćä¸şă\color[lightmagenta]{ćľç´Ťč˛}ăăäťĽä¸äťŁç&nbsp;ĺŻç¨äşćĽç \CONTEXT\ é˘ĺŽäšé˘č˛ďź

\starttyping[option=TEX]
\startTEXpage[offset=4pt]
\showcolor[rgb]
\stopTEXpage
\stoptyping

ä˝żç¨ \type{\definecolor} ĺŻäťĽéčżčŽžĺŽçş˘ďźrďźăçťżďźgďźăčďźbďźĺéĺŽäšé˘č˛ăäžĺŚ

\startsample
\definecolor[myred][r=.8,g=.2,b=.2]
\framed{\myred çťä˝&nbsp;çš color see seeďź}
\stopsample
\simplesample[option=TEX]{\getsample}

\noindent ä¸čż°äťŁç&nbsp;ä¸­ĺŻäťĽčŽŠä˝&nbsp;ä˝&nbsp;éĄşäžżĺĺ­ŚäźäşĺŚä¸ç§çťćĺ­ĺ˘ĺ&nbsp;ĺ¤ćĄçćšćłă

äşŚĺŻä˝żç¨ \type{\colored} ç´ćĽčŽžĺŽ rgb é˘č˛ĺŻšćĺ­çč˛ďźäťĽä¸äťŁç&nbsp;ä¸ä¸äžç­ćďź

\startsample
\framed{\colored[r=.8,g=.2,b=.2]{çťä˝&nbsp;çš color see seeďź}}
\stopsample
\typesample[option=TEX]

\section{ćžç¤şçŠşć&nbsp;ź}

\starttyping[escape=no,option=TEX]
\starttyping[space=on]
H E  L   L    L     O
\stoptyping
\stoptyping
\start
\setuptyping
  [before={\startframedtext[width=\textwidth]},
   after={\stopframedtext}]
\starttyping[space=on]
H E  L   L    L     O
\stoptyping
\stop

ćł¨ćďź\CONTEXT\ ä¸­ćć­čĄéčŚ \type{\setscript[hanzi]}ďźä˝čŻĽĺ˝äť¤äźĺĺŹćąĺ­äšé´ççŠşç˝ĺ­çŹŚďźäťčĺŻźč´ä¸ä¸ŞéŽé˘ďźĺ¨ \type{\type} ĺ \type{typing} çŻĺ˘ä¸­ďźćąĺ­äšé´čĽĺ­ĺ¨çŠşç˝ĺ­çŹŚďźĺŽäťŹä¸äźč˘Ťčžĺşĺ°ćççťćďźć­¤ćśďźĺŞć \type{space=on} ĺŻäťĽććĽă

äžĺŚďźäťĽä¸ \type{typing} çŻĺ˘ćŞĺźĺŻçŠşć&nbsp;źćžç¤şďź

\starttyping
ćŹ čĄ ćŻ ä¸Ş ćą ĺ­ äš ĺ é˝ ć çŠş ć&nbsp;źďź ä˝ ćŻ ä˝&nbsp; ç ä¸ č§ ĺŽďź é¤ é space=on ďź
\stoptyping
\noindent äťĽä¸ \type{typing} çŻĺ˘ĺźĺŻäşçŠşć&nbsp;źćžç¤şďź
\starttyping[space=on]
ćŹ čĄ ćŻ ä¸Ş ćą ĺ­ äš ĺ é˝ ć çŠş ć&nbsp;źďź ä˝ ćŻ ä˝&nbsp; ç ä¸ č§ ĺŽďź é¤ é space=on ďź
\stoptyping

\section{ĺŽäš}

ä˝żç¨ \type{\definetype} ĺ \type{\definetyping} ĺŻĺŽäšä¸ç¨çćĺ˝çŻĺ˘ăäžĺŚ

\starttyping[option=TEX]
\starttyping[escape=yes,space=on,option=TEX]
Hello /BTEX\darkred\CONTEXT/ETEX!    
\stoptyping
\stoptyping

\noindent ĺčĽćŻćŹĄä˝żç¨čŻĽ \type{typing} çŻĺ˘ďźĺŻč˝äźčŽŠä˝&nbsp;č§ĺžçšçďźä¸ĺ˘ĺ&nbsp;äşčžĺĽĺşéçéŁéŠďźéç¨äťĽä¸ćšćłĺŻäşäťĽçŽĺďź

\starttyping[option=TEX]
\definetyping[foo][escape=yes,space=on,option=TEX]
\startfoo
Hello /BTEX\darkred\CONTEXT/ETEX!
\stopfoo
\stoptyping


\section{ĺ°çť}

äşč˛ä˝żäşşçŽç˛ăĺłä˝ż \CONTEXT\ çäťŁç&nbsp;çč˛ĺč˝ćŞč˝ćŻćä˝&nbsp;çç¨ĺşäťŁç&nbsp;ďźäščŽ¸ĺšśä¸ĺźĺžéćžăäščŽ¸çć­ŁĺźĺžéćžçćŻďźĺŽćŞč˝ćżĺä˝&nbsp;ĺŻš Lua čŻ­č¨ĺ Lpeg ĺşçĺ´čśŁďźččżć­ŁćŻ \CONTEXT\ çäťŁç&nbsp;çč˛ĺč˝ćŻćççźç¨čŻ­č¨čżĺ°ćéčŚçĺĺ&nbsp;ă</pre></body></html>