0

I've a C# project that I need to create documentation file. I'm using last version of SHFB and VS 2005 to create XML documentation file.

How can I add code blocks inside documentation? I wanna show all lines of my function, not only one part for sample.

I found a document that describes how to add code block in sandcastle with code tag, but my functions dont have that tag, also in project there are a lot of functions, so its imposible to add tags for all functions.

Is there any way to build code tag from project automaticly, or a plugin for show inside of function?

Thanks.

4

1 に答える 1

1

各関数の XML コメント内の要素で source および region カスタム属性を使用する必要があります。API メンバー ID に基づいてコードをインポートする方法はないため、ヘルプ ファイル内のすべてのプロパティ、イベント、メソッドなどのすべてのコードが本当に必要な場合は、難しい方法で行う必要があります。リージョン内のそれぞれのボディを作成し、それぞれのコメントに要素を追加して、そのリージョンをインポートします。

電子メールで要求されたので、ここに投稿しますが、StackOverflow に従っていないことに注意してください。SHFB または Sandcastle に関する質問がある場合は、CodePlex の SHFB プロジェクトのディスカッション ページに投稿してください。ありがとう。

エリック

于 2013-12-13T02:44:33.387 に答える