【问题标题】:Multiple language examples in XML DocumentationXML 文档中的多语言示例
【发布时间】:2010-05-24 22:17:14
【问题描述】:

有没有办法在 XML 文档中包含多种语言(例如 C# 和 Visual Basic)的示例?

我正在使用 SandCastle 构建 MSDN 风格的文档,并希望包含一些 .NET 语言的使用示例。

【问题讨论】:

    标签: c# vb.net xmldocument sandcastle


    【解决方案1】:

    我的示例已编码,例如像这样:

        /// <example>
        /// <code source="..\FormControls\FileModelEdit\Form1.cs" region="published help using openDocumentFragment" lang="cs" />
        /// </example>
    

    我大概可以(虽然我没有)有几个 &lt;code&gt; 元素,每个元素都有不同的 lang 属性值。

    【讨论】:

    • 我能够添加多个代码元素,每个元素都有自己的语言属性。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-05
    • 1970-01-01
    相关资源
    最近更新 更多