c# - 使用 sandcaSTLe 将示例代码放入文档中

标签 c# documentation sandcastle

我正在使用 sandcaSTLe 帮助文件生成器从我的 c# 代码的 xml 注释生成文档文件。你知道如何将代码示例包含到帮助文件中,例如 msdn 样式吗?

最佳答案

你试过<example>了吗?和 <code>标签?它应该做你想做的事。

<summary> ... </summary>
<example>This is a code example:
  <code> ... </code>
</example>

关于c# - 使用 sandcaSTLe 将示例代码放入文档中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/968644/

相关文章:

使用 Swagger 的 Spring REST API 文档

arrays - 第一个数组元素是?

chm - 如何从 CHM 文件中获取 TopicID?

类的 C# 文档 <example><code>...</code></example>

c# - 缺少显式实现接口(interface)的摘要标签?

c# - 如何使用 Microsoft Graph api 从 azure Active Directory 获取所有用户属性

c# - 多线程 C# 2.0 的困惑

interface - 为什么 GoDoc 不显示接口(interface)变量?

c# - 在 RelayCommand WPF 上启用按钮

c# - 如何旋转图片框中的图片