Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 823
sawa Avatar asked Jun 25 '14 18:06

sawa


2 Answers

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)
like image 184
a user Avatar answered Sep 22 '22 15:09

a user


This worked for me. Add the following piece of code and the line just vanishes off.

editor.setShowPrintMargin(false);
like image 34
Nadeem Avatar answered Sep 21 '22 15:09

Nadeem