source10.xml

来自「XML tutorial」· XML 代码 · 共 31 行

XML
31
字号
<XTutorial id="10" next="11" previous="9">
<description lang='eng'>Comments may appear anywhere in a document outside other markup. An XML processor may, but need not, make it possible for an application to retrieve the text of comments. The string "--" (double-hyphen) must not occur within comments. </description>
<description lang='chi'>注释可以出现在文档的任何地方, 但必须位于其它标记之外. 一个XML处理器或许应该(但并非必须)能够让应用程序有办法得到注释的内容. 此外, 双连字符 "--" 不应该出现在注释里. </description>
<demo type="wf">
<description lang='eng'>Comment can contain any characters apart from --</description>
<description lang='chi'>注释可以包含除了 -- 之外的任何字符</description>
<doc>
{!-- doc A --}
{example}
{!-- &lt;HEAD>  --}
{!-- Characters &lt;&amp;&lt;  --}
{/example}
</doc>

</demo>

<demo type="notwf">
<description lang='eng'>Comment must not contain  --</description>
<description lang='chi'>注释不能包含 --</description>
<doc>
{example}
	{!-- A <error>--</error> B --}
{/example}
</doc>

</demo>

</XTutorial>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?