source8.xml

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

XML
39
字号
<XTutorial id="8" next="9" previous="7">
<description lang='eng'>Characters &lt; and &amp; cannot be used in text as they are used in markup. If  these characters are needed  &amp;lt; must be used insted of &lt; and &amp;amp; instead of &amp; </description>
<!-- <description lang='cze'>Znaky &lt; a &amp; nemohou být použity v textu, neboť jsou určeny pro značkování. Pokud jsou potřeba, &amp;lt; musí být použito místo &lt; a &amp;amp; místo &amp; </description> -->
<description lang='chi'>字符 &lt; 和 &amp; 不能在文本内容中使用, 因为他们已经作为标记使用了. 如果你确实要用到这些字符, 那么应该用  &amp;lt; 来代替 &lt;  用 &amp;amp; 代替 &amp; </description>
<demo type="wf">
<description lang='eng'>&amp; and &lt; substitution</description>
<!-- <description lang='cze'>&amp; a &lt; substituce</description> -->
<description lang='chi'>&amp; 和 &lt; 的替代形式</description>
<doc>
{example}
	{isLower}
		23 &amp;lt; 46
	{/isLower}
	{ampersand}
		Willey &amp;amp; sons
	{/ampersand}
{/example}
</doc>

</demo>

<demo type="notwf">
<description lang='eng'>Characters &amp; and &lt; cannot be used inside text</description>
<!-- <description lang='cze'>Znaky &amp; a &lt; nemohou být použity v textu</description> -->
<description lang='chi'>字符 &amp; 和 &lt; 不能在文本内容里使用</description>
<doc>
{example}
	{isLower}
		23 <error>&lt;</error> 46
	{/isLower}
	{ampersand}
		Willey <error>&amp;</error> sons
	{/ampersand}
{/example}
</doc>
</demo>

</XTutorial>

⌨️ 快捷键说明

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