有没有办法在Ace Editor中隐藏行号? [英] Is there a way to hide the line numbers in Ace Editor?

查看:561
本文介绍了有没有办法在Ace Editor中隐藏行号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ace编辑器是否可以删除行号?

Is there any way to remove the line numbers when using the ace editor?

类似于如下所示删除打印边距吗?

Similar to removing the print margin as shown below?

editor.setShowPrintMargin(false);


推荐答案

使用

editor.renderer.setShowGutter(true / false);

http://ace.c9.io/#VirtualRenderer.setShowGutter=&nav=api& ; api = virtual_renderer

编辑器选项
https://github.com/ajaxorg/ace/wiki/Configuring-Ace

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

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