【问题标题】:Is there a way to hide the vertical ruler in Ace Editor?有没有办法在 Ace Editor 中隐藏垂直标尺?
【发布时间】:2013-02-01 03:57:26
【问题描述】:

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

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

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

【问题讨论】:

    标签: ace-editor


    【解决方案1】:

    找到了,需要用这个:

    editor.setShowPrintMargin(false);
    

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

    【讨论】:

      猜你喜欢
      • 2015-04-01
      • 2012-10-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-24
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多