有没有办法在 Ace Editor 中隐藏垂直标尺? [英] Is there a way to hide the vertical ruler in Ace Editor?

查看:35
本文介绍了有没有办法在 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

推荐答案

找到了,需要用这个:

editor.setShowPrintMargin(false);

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

这篇关于有没有办法在 Ace Editor 中隐藏垂直标尺?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆