有没有办法在Ace Editor中隐藏垂直标尺? [英] Is there a way to hide the vertical ruler in Ace Editor?
本文介绍了有没有办法在Ace Editor中隐藏垂直标尺?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在Ace中隐藏垂直标尺?
Is there a way to hide the vertical ruler in Ace?
通过垂直标尺,我的意思是编辑器中的垂直线为80个字符,这有助于使行数保持在一定长度。
By vertical ruler I mean the vertical line in the editor at 80 chars which helps to keep lines under a certain length.
我想给我的用户选择启用/禁用它的可能性
I'd like to give my users the options to enable/disable it If possible
推荐答案
找到它,您需要使用它:
Found it, you need to use this:
editor.setShowPrintMargin(false);
https://ace.c9.io/api/editor.html#Editor.setShowPrintMargin
这篇关于有没有办法在Ace Editor中隐藏垂直标尺?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文