![](/img/trans.png)
[英]How to set text align and indentation in codemirror editor as it always start in the middle?
[英]How to disable syntax highlighted text in the codemirror editor?
我需要在codemirror编辑器中禁用语法突出显示的文本,因为用户可能会在编辑器中编辑某些语法,这将导致程序无法运行。 那么,如何禁用语法内容的编辑?
例如:
在这种情况下,仅标签不应是可编辑的,其余内容应是可编辑的。
怎么做??
任何帮助将不胜感激。 提前致谢。
readOnly: boolean|string
This disables editing of the editor content by the user. If the special value "nocursor" is given (instead of simply true), focusing of the editor is also disallowed.
造访: http : //codemirror.net/doc/manual.html取得文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.