Newline in XML comments

  • Thread starter Thread starter Nico Vrouwe
  • Start date Start date
N

Nico Vrouwe

Hi,

I'm wondering if it's possible to add a \n or \r\n to an XML comment. And if
so, how?
Some comments can get a bit long and it looks messy in the object browser.

TIA,

Nico Vrouwe
 
Nico,

I don't believe it will recognize \r or \n, but since it is XML, it
should understand the escape sequences for newlines, (I believe that you
need to have \u then the unicode code for the character). It should
recognize this.

Hope this helps.
 
Nicholas,

It just shows "\u000D\u000A", so I guess it doesn't recognize it.
Thanks anyway!

Nico Vrouwe


Nicholas Paldino said:
Nico,

I don't believe it will recognize \r or \n, but since it is XML, it
should understand the escape sequences for newlines, (I believe that you
need to have \u then the unicode code for the character). It should
recognize this.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Nico Vrouwe said:
Hi,

I'm wondering if it's possible to add a \n or \r\n to an XML comment.
And
if
so, how?
Some comments can get a bit long and it looks messy in the object browser.

TIA,

Nico Vrouwe
 
Back
Top