views:

383

answers:

1

i'm generating documentation files from the xml comments of my c# code, by using sandcastle help file builder. do you know how to include code examples into the help file, like msdn style?

+4  A: 

Did you try the <example> and <code> tags? It should do what you want.

<summary> ... </summary>
<example>This is a code example:
  <code> ... </code>
</example>
tanascius
yep it's pretty much what i wanted. thanks tanascius :)
davsan
And if you're using SHFB ( http://www.codeplex.com/SHFB ) you can add the language of the code too, that way you'll also get code colorization.
Paulo Santos