Top "Line-breaks" questions

Whitespace that forces text layout to continue at the start of the next line.

How to insert newline in string literal?

In .NET I can provide both \r or \n string literals, but there is a way to insert something like "…

c# .net line-breaks
How to read a file without newlines?

In Python, calling temp = open(filename,'r').readlines() results in a list in which each element is a line in …

python line-breaks readlines
How to force a line break in a long word in a DIV?

Okay, this is really confusing me. I have some content inside of a div like so: <div style="background-color: …

html css line-breaks
How to convert the ^M linebreak to 'normal' linebreak in a file opened in vim?

vim shows on every line ending ^M How I do to replace this with a 'normal' linebreak?

vim line-breaks
Match linebreaks - \n or \r\n?

While writing this answer, I had to match exclusively on linebreaks instead of using the s-flag (dotall - dot matches …

regex language-agnostic line-breaks
Multiple lines of text in UILabel

Is there a way to have multiple lines of text in UILabel like in the UITextView or should I use …

ios uilabel uitextview line-breaks multiline
How can I put strings in an array, split by new line?

I have a string with line breaks in my database. I want to convert that string into an array, and …

php string line-breaks
How to add line breaks to an HTML textarea?

I’m editing a <textarea> with JavaScript. The problem is that when I make line breaks in it, …

javascript html textarea line-breaks
How to add a line break in an Android TextView?

I am trying to add a line break in the TextView. I tried suggested \n but that does nothing. Here …

android textview line line-breaks
See line breaks and carriage returns in editor

Does anyone know of a text editor on Linux that allows me to see line breaks and carriage returns? Does …

vim newline text-editor line-breaks carriage-return