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

StackOverflow https://stackoverflow.com/questions/20432175

  •  29-08-2022
  •  | 
  •  

Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top