Tim
Tim

Reputation: 3221

Ace - How do I force a new line after a specified number of characters (columns)?

I am using Ace IDE and I want to make it force a new line when the user enters a certain amount of characters on that line. I do not want it to create a new line as such, just return the cursor onto the next line, keeping the same line number. similar to this style:

enter image description here

Upvotes: 0

Views: 1115

Answers (1)

a user
a user

Reputation: 24104

try editor.setOption("wrap", 80).

Upvotes: 4

Related Questions