Should I use new line or newline? [closed]

To demonstrate what pressing ENTER on the keyboard does, which sentence is correct?

  1. The programmer can continue to write code on a new line.

  2. The programmer can continue to write code on a newline.


"new line" is the correct version.


You cannot write code on a newline because newline is a control character. You will not find "newline" as a word in most ordinary dictionaries because it is a technical term.

You can write code or any other text on a new line.


Note

The ASCII newline character is \n, also known as line feed.

‘\n’ = 10 = 0x0A = line feed

‘\r’ = 13 = 0x0D = carriage return