This comes up anywhere you have to mix code and textual content: HTML, TeX, long comments in code, etc. Most editors will do this:
<div class="bla">
<p>
I want to write a long paragraph here. I want to write a long paragraph here. I want to write a long paragraph here. I want to write a long paragraph here. I want to write a long paragraph here.
</p>
</div>
or else
<div class="bla">
<p>
I want to write a long paragraph here. I want to write a long paragraph
here. I want to write a long paragraph here. I want to write a long paragraph
here. I want to write a long paragraph here.
</p>
</div>
The sight of it is just painful. To get the only readable possibility I can think of,
<div class="bla">
<p>
I want to write a long paragraph here. I want to write a long paragraph
here. I want to write a long paragraph here. I want to write a long
paragraph here. I want to write a long paragraph here.
</p>
</div>
you have to do the line breaks manually (obviously just fail). Is there a common feature of text editors and IDEs that would help with this that I'm not aware of? What's your strategy?