473,786 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NewLine in Documentation Comment

Is there a way to insert a newline into a documentation comment? The
intention is to have the tooltip that appears with Intellisense show the
line breaks so that the description is easier to read.

For example, I have a method where one of the parameters is a bool. The
diference between true and false is significant to the results. I would
like the tool tip to read as follows for that parameter:

IsBoolParam: true = blah blah blah blah
false = blah blah blah

instead of this:

IsBoolParam: true = true = blah blah blah blah. false = blah blah blah

Any help is greatly appreciated. Also, if you know of a source of
information regarding other ways these documentation comments may be
formatted it would be great.

-David Martin
Nov 15 '05 #1
3 11868
David,

you will have to do this manually, you can't set it through the properties
window.

do into the "Windows Form Designer generated code" region and look for the
line that sets your Tooltip text.
it ought to look something like this:
---------------------------------
this.toolTip1.S etToolTip(this. checkedListBox1 , "IsBoolPara m: true = blah
blah blah blah false = blah blah blah");
-------------------------------

change it to include the \r\n where you need it

-----------------------------
this.toolTip1.S etToolTip(this. checkedListBox1 , "IsBoolPara m: true = blah
blah blah blah\r\nfalse = blah blah blah");
-------------------------------

of course if you are doing this somewhere in your code, just do the same
thing.

Kirk Graves

"David Martin" <We*****@dfmart in.com> wrote in message
news:OI******** ******@tk2msftn gp13.phx.gbl...
Is there a way to insert a newline into a documentation comment? The
intention is to have the tooltip that appears with Intellisense show the
line breaks so that the description is easier to read.

For example, I have a method where one of the parameters is a bool. The
diference between true and false is significant to the results. I would
like the tool tip to read as follows for that parameter:

IsBoolParam: true = blah blah blah blah
false = blah blah blah

instead of this:

IsBoolParam: true = true = blah blah blah blah. false = blah blah blah

Any help is greatly appreciated. Also, if you know of a source of
information regarding other ways these documentation comments may be
formatted it would be great.

-David Martin

Nov 15 '05 #2
Thanks, but that is not what I am looking for. I don't have a tooltip
control. I am talking about the documentation comments on a class or
member. For instance, on a method you may see

///<summary>
///This is my sample method that does such and such.
///</summary>
///<param name="ClientID" >A unique integer representing the primary key for
the client<param>
///<returns>Return s a bool true if the client exists and false if it does
not</returns>
public bool IsClient(int ClientID)
.....

This results in an **Intellisense* * tooltip (inside of the code window - not
in the finished product) to assist the developer. I'd like to be able to
insert linebreaks into say, the returns. Something like
///<returns>Return s bool \n true = exists \n false = does not
exist</return>

so that the developer will see
Returns bool.
true = exists
false = does not exist

instead of "Returns bool. true = exists. false = does not exist."

Thanks.

"Kirk Graves" <kr***********@ yahoo.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
David,

you will have to do this manually, you can't set it through the properties
window.

do into the "Windows Form Designer generated code" region and look for the
line that sets your Tooltip text.
it ought to look something like this:
---------------------------------
this.toolTip1.S etToolTip(this. checkedListBox1 , "IsBoolPara m: true = blah
blah blah blah false = blah blah blah");
-------------------------------

change it to include the \r\n where you need it

-----------------------------
this.toolTip1.S etToolTip(this. checkedListBox1 , "IsBoolPara m: true = blah
blah blah blah\r\nfalse = blah blah blah");
-------------------------------

of course if you are doing this somewhere in your code, just do the same
thing.

Kirk Graves

"David Martin" <We*****@dfmart in.com> wrote in message
news:OI******** ******@tk2msftn gp13.phx.gbl...
Is there a way to insert a newline into a documentation comment? The
intention is to have the tooltip that appears with Intellisense show the
line breaks so that the description is easier to read.

For example, I have a method where one of the parameters is a bool. The
diference between true and false is significant to the results. I would
like the tool tip to read as follows for that parameter:

IsBoolParam: true = blah blah blah blah
false = blah blah blah

instead of this:

IsBoolParam: true = true = blah blah blah blah. false = blah blah blah

Any help is greatly appreciated. Also, if you know of a source of
information regarding other ways these documentation comments may be
formatted it would be great.

-David Martin


Nov 15 '05 #3
I think you are looking for the <para> tag. Just use it in the <returns>
tag so that it starts a new paragraph.

Chad Evans
David Martin wrote:
Thanks, but that is not what I am looking for. I don't have a tooltip
control. I am talking about the documentation comments on a class or
member. For instance, on a method you may see

///<summary>
///This is my sample method that does such and such.
///</summary>
///<param name="ClientID" >A unique integer representing the primary key for
the client<param>
///<returns>Return s a bool true if the client exists and false if it does
not</returns>
public bool IsClient(int ClientID)
....

This results in an **Intellisense* * tooltip (inside of the code window - not
in the finished product) to assist the developer. I'd like to be able to
insert linebreaks into say, the returns. Something like
///<returns>Return s bool \n true = exists \n false = does not
exist</return>

so that the developer will see
Returns bool.
true = exists
false = does not exist

instead of "Returns bool. true = exists. false = does not exist."

Thanks.

"Kirk Graves" <kr***********@ yahoo.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
David,

you will have to do this manually, you can't set it through the properties
window.

do into the "Windows Form Designer generated code" region and look for the
line that sets your Tooltip text.
it ought to look something like this:
---------------------------------
this.toolTip1 .SetToolTip(thi s.checkedListBo x1, "IsBoolPara m: true = blah
blah blah blah false = blah blah blah");
-------------------------------

change it to include the \r\n where you need it

-----------------------------
this.toolTip1 .SetToolTip(thi s.checkedListBo x1, "IsBoolPara m: true = blah
blah blah blah\r\nfalse = blah blah blah");
-------------------------------

of course if you are doing this somewhere in your code, just do the same
thing.

Kirk Graves

"David Martin" <We*****@dfmart in.com> wrote in message
news:OI****** ********@tk2msf tngp13.phx.gbl. ..
Is there a way to insert a newline into a documentation comment? The
intention is to have the tooltip that appears with Intellisense show the
line breaks so that the description is easier to read.

For example, I have a method where one of the parameters is a bool. The
diference between true and false is significant to the results. I would
like the tool tip to read as follows for that parameter:

IsBoolPara m: true = blah blah blah blah
false = blah blah blah

instead of this:

IsBoolPara m: true = true = blah blah blah blah. false = blah blah blah

Any help is greatly appreciated. Also, if you know of a source of
informatio n regarding other ways these documentation comments may be
formatted it would be great.

-David Martin



Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1618
by: p brian | last post by:
Dear all, Weirdly enough i do not think I have come across this before. Perhaps I do not use enough comments.... mystring = "hello " + someVariable + \ "multiple lines 4 clarity" + \ someothervariable print mystring
12
2881
by: Fredrik Olsson | last post by:
Hello. For Java there is javadac, for Obj-C headerdoc2html, for C doxygen, and even for good old VB 6 there is VBDox. But I have found no suitable tool for documenting my .net code to get documentation that is consistent with what MSDN offers and .net-develoepers are used to. I guess I have only searched int he wrong places, or with the wrong keywords
1
2981
by: Ole Hanson | last post by:
I would like to be able to generate documentation for a custom configuration file (xml) to enable future support engineers to understand applicable values to the various elements inside the configuration file. (see below for sample). Does any program exist (like NDoc) that is able to generate MSDN like documentation?
29
3480
by: runningdog | last post by:
Hi, I would like to be able to embed a newline in a text string. Is there any convienent notation to do this TIA Steve
97
4410
by: Cameron Laird | last post by:
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Meyer Among the treasures available in The Wiki is the current copy of "the Sorting min-howto":
40
2805
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my source code?
7
4036
by: anatoli.barski | last post by:
I currently use xml.dom.minidom and ext to create a dom-tree which I would write to an xml-file. My intention is to create something like this: <Robot> <!-- armar3 --> <Joint> </Joint> <Joint> </Joint>
5
8558
by: Bob Altman | last post by:
I thought I read somewhere in the MS documentation that XML documentation is compiled in C++, but the C++ code editor obviously doesn't do anything interesting when I enter "///". What's the deal with C++ and XML docs? Is there an add-in available to help with entering XML docs? TIA - Bob
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.