Reputation: 3376
how to add new line in my string resource file?
I already tried \r\n
, \n
,
,
but it displays exactly what you've indicated, it does not give a new line.
Thanks for your help
Upvotes: 0
Views: 901
Reputation: 11
When editing resource file in designer press Shift + Enter for new line.
Upvotes: 1
Reputation: 1341
You could, but its a bit indirect. By using
you could add a new line, the only trick here is that & gets converted to 
in the background. To bring it back to
, all you have to do is open your .resx the file in xml (right-click and open with XML (Text) editor), remove the amp;
of the 
Before
<data name="HelloWorld" xml:space="preserve">
<value>Hello &#13; World</value>
</data>
After
<data name="HelloWorld" xml:space="preserve">
<value>Hello World</value>
</data>
Upvotes: 0