Search code examples
javascripthtmlace-editor

Disabling horizontal split in Ace Editor


I am using Ace Editor. As is shown in the page that I linked, the editor appears with an empty portion on the right side (which I believe is the split view) with a vertical line between it and the (main) editing space. How can I turn this off?


Solution

  • It is not a split view but a print margin - simple line at the specified column, to help seeing when lines become too long.

    To disable it use

    editor.setOption("showPrintMargin", false)