如何逃避“代码”标签在DokuWiki的XML代码块中 [英] How to escape "code" tag in an XML code block in DokuWiki
本文介绍了如何逃避“代码”标签在DokuWiki的XML代码块中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在DokuWiki页面中,我想使用< code xml>
标签将一部分XML文件显示为突出显示的语法块。该XML还包含一个< code>< / code>
In a DokuWiki page, I want to show part of an XML file as a highlighted syntax block using the <code xml>
tag. The XML also contains a <code></code>
tag, so DokuWiki detects it as the end of the block. For example:
<code xml>
<?xml version="1.0" encoding="UTF-8"?>
<root>
<code>Some data</code><!-- The sintax highlighted block breaks here -->
</root>
</code><!-- This one is actually the closing tag -->
有没有办法逃避< / code>
标签?
推荐答案
改用文件标签:
<file xml>
<?xml version="1.0" encoding="UTF-8"?>
<root>
<code>Some data</code>
</root>
</file>
这篇关于如何逃避“代码”标签在DokuWiki的XML代码块中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文