Short answer: use <br>
if editing raw file or use <br>
if editing in IDE.
Details: If you create line breaks by just pressing Enter or Shift+Enter then the line breaks will not show up on a web page. Going back to HTML basics, if you want the browser to render line breaks then you must use a <br>
tag. For me I was editing my resx file using a simple text editor, and the problem I encountered when adding a <br>
tag is that when I later tried to open the file in Visual Studio it threw an error about "the closing tag doesn't match". It turns out that resx files don't allow you to use a <br>
tag. You need to actually use <br>
. In fact, if you're editing the file in Visual Studio and you enter <br>
in the value field, it will automatically convert <br>
to <br>
. You won't see it in the IDE, but if you enter <br>
in the IDE, save it, then open the raw file in Notepad++ you will see the actual value is <br>
.