New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing source code using a region #160

Closed
JamesNK opened this Issue Feb 12, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@JamesNK
Member

JamesNK commented Feb 12, 2016

I use Sandcastle's code snippet plugin a lot. In your documentation it mentions referencing a file and then either specifying line numbers or a tag. What is a tag in C#? Sandcastle lets you specfiy a C# #region and that content is imported

<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\Samples\Json\CustomJsonReader.cs" region="Usage" title="Usage" />

I like #region because it is part of the language and messing them up results in a compilation error.


From #148

@chenkennt chenkennt added this to the v1.6 milestone Feb 29, 2016

@chenkennt chenkennt modified the milestones: v1.7, v1.6 Mar 17, 2016

@chenkennt chenkennt closed this Mar 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment