41

有没有办法在 Ace 中隐藏垂直标尺?

垂直标尺是指编辑器中 80 个字符的垂直线,这有助于将线条保持在一定长度以下。

如果可能的话,我想为我的用户提供启用/禁用它的选项

4

1 回答 1

78

找到了,你需要使用这个:

editor.setShowPrintMargin(false);

https://ace.c9.io/api/editor.html#Editor.setShowPrintMargin

于 2013-02-16T05:37:15.940 回答