Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: 4 May 2006 08:18:25 -0700,    group: microsoft.public.vstudio.helpauthoring        back       


Line breaks in comment tags ?   
Hi @LL,

hope somebody might be able to help me out on this. I'm using the XML
comment tags like <summary> etc. to comment my (C#) source code. To
generate documentation I currently use NDoc. Now, the thing I am trying
to do is adding line breaks in the XML comment to format the resulting
output in the documentation. It should be something like this:

/// <summary>
/// Some explanation ... <br/>
/// <br/>
/// Some more info ... <br/>
/// <br/>
/// And even more ... <br/>
/// <br/>
/// Developer info ...
/// </summary>

Which should produce output in the NDoc generated helpfile that
actually looks like intended:

Some explanation ...<line break>
<line break>
Some more info ...<line break>
<line break>
And even more ...<line break>
<line break>
Developer info ...

But it does not work. NDoc seems to ignore the break commands I use (I
tried the HTML <br/> and \n) completely.

Questions are this:
- Do I use the wrong command to manually add a line break to the output
?
- Is it possible at all ?
- Might it be an NDoc "problem" ?

Thanks for any suggestions.
date: 4 May 2006 08:18:25 -0700   author:   unknown

Re: Line breaks in comment tags ?   
I would use <para> tag. It has the same purpose as <p> in HTML. It's 
recommended by MS 
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfpara.asp) 
and Ndoc should support it.

If you are on VB .NET boat, you can use our WYSIWYG comment editor which 
automatically formats <para> sections.

-- 
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB 
..NET and ASP .NET code
date: Thu, 04 May 2006 18:43:54 +0200   author:   Peter Macej

Re: Line breaks in comment tags ?   
Thanks for the tip. Unfortunately, it didn't work out with NDoc. I even
tried it with the lastest NDoc build but still not the expected
results.

After digging deeper into that problem at the various NDoc help sources
I guess it should work that way with NDoc too, but it simply does not
for me.
date: 4 May 2006 10:58:25 -0700   author:   2biased

Re: Line breaks in comment tags ?   
It seems that I only a some problems with my configuration. Now the
<para> tags are written correctly to the XML file and NDoc can work
with them.

Thanks for the hint again. Problem solved.
date: 4 May 2006 11:11:33 -0700   author:   2biased

Re: Line breaks in comment tags ?   
So, are you able to get line breaks recognized in your NDoc compiled
help file?

I am having similar problems; however, the <para> tag is actually
included as text in the compiled help file.  I also tried <br> and <p>
and these are also included as text in the help file.  NDoc compiles
fine; the problem is that it includes the line break tags as text in
the help file and no line breaks are displayed.

If anyone has any ideas please let me know.

Thanks,
Curtis

2biased wrote:
> It seems that I only a some problems with my configuration. Now the
> <para> tags are written correctly to the XML file and NDoc can work
> with them.
> 
> Thanks for the hint again. Problem solved.
date: 9 May 2006 13:41:14 -0700   author:   Iceman

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us