<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">What is the purpose of the escaped code in live examples?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>In the debug chapter (example 50.2) we have this:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;&lt;<FONT class="Apple-style-span" color="#3F7F7F">example </FONT><FONT class="Apple-style-span" color="#7F007F">role</FONT><FONT class="Apple-style-span" color="#000000">=</FONT><FONT class="Apple-style-span" color="#2A00FF">"live-example"</FONT>&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">title</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Runtime exceptions printed once per line</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">title</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">programlisting </SPAN></FONT><FONT class="Apple-style-span" color="#7F007F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">language</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#2A00FF" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"lzx"</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textobject</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textdata </SPAN></FONT><FONT class="Apple-style-span" color="#7F007F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">fileref</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#2A00FF" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"programs/debugging-$3.lzx"</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">/&gt;&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textobject</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">programlisting</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">example</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;?</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">informalexample </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">role="live-example"&gt;&lt;programlisting role="lzx-embednew"&gt;&lt;filename&gt;debugging-$3.lzx&lt;/filename&gt;&lt;parameter/&gt;&lt;code&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;canvas debug="true" height="150"&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;handler name="oninit"&amp;gt;&amp;lt;![CDATA[</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">for (var i = 0; i &amp;gt; 10; i ++) {</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">      </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">canvas.width();</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">]]&amp;gt;&amp;lt;/handler&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;/canvas&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/code&gt;&lt;/programlisting&gt;&lt;programlisting&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;canvas debug="true" height="150"&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;handler name="oninit"&amp;gt;&amp;lt;![CDATA[</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">for (var i = 0; i &amp;gt; 10; i ++) {</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">      </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">canvas.width();</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">]]&amp;gt;&amp;lt;/handler&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&amp;lt;/canvas&amp;gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/programlisting&gt;&lt;?lzx-edit programs/debugging-$3.lzx&gt;&lt;/informalexample</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">?&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">As far as I can tell, this does exactly the same thing:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">example </SPAN></FONT><FONT class="Apple-style-span" color="#7F007F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">role</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#2A00FF" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"live-example"</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">title</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Runtime exceptions printed once per line</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">title</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">programlisting </SPAN></FONT><FONT class="Apple-style-span" color="#7F007F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">language</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#2A00FF" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"lzx"</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textobject</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;&lt;</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textdata </SPAN></FONT><FONT class="Apple-style-span" color="#7F007F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">fileref</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#2A00FF" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"programs/debugging-$3.lzx"</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">/&gt;&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">textobject</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">   </SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">programlisting</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">example</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;?</SPAN></FONT><FONT class="Apple-style-span" color="#3F7F7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">informalexample </SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">role="live-example"&gt;&lt;programlisting role="lzx-embednew"&gt;&lt;filename&gt;debugging-$3.lzx&lt;/filename&gt;&lt;parameter/&gt;&lt;code&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">&lt;/programlisting&gt;&lt;?lzx-edit programs/debugging-$3.lzx&gt;&lt;/informalexample</SPAN></FONT><FONT class="Apple-style-span" color="#008080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">?&gt;</SPAN></FONT></DIV></BODY></HTML>