在visual studio中为XML注释添加换行符

时间:2013-08-26 18:56:27

标签: xml visual-studio documentation xmldocument

有没有办法在不使用br标签的情况下为xml文档添加中断?在下面的示例中,我希望步骤节点中的文本在输出中干净地显示。例如,输出中存在换行符

///<summary> this is a unit test </summary>
///<steps>
/// 1. do something
/// 2. do something else
/// 3. save that something
///</steps>

如果我使用br标签,如果我在IE中打开xml文件,将显示标签。至少现在我想避免使用沙堡之类的东西,因为我的显示需求非常小。

1 个答案:

答案 0 :(得分:1)

尝试

///<para>1. Do Something</para>

并且

///<para/>1. Do Something 

也可能适用于1-liners。

现在,如果你想要一个清单......

///<list>
///<item>Do Something</item>
///<item/>Experiment to see if this works
///</list>

Here is a nice, concise article on XML comment tags

相关问题