如何在代码镜像中应用css文本 [英] how to apply css for text in code mirror

查看:57
本文介绍了如何在代码镜像中应用css文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有代码镜像控件,我想在代码镜像中输入文本时应用文本的CSS样式,

表示当我输入任何关键字时需要显示具有特殊样式的文本



任何人都可以帮我怎么做

i have code mirror control, i want to apply css style for text when i entered text in code mirror,
means when i entered any keyword need to display that text with special style

can anyone help me how to do that

推荐答案

请尝试如下。



注意:这只是一个样本。

Please try is as below.

Note: This is just a sample.
<div class="CodeMirror-gutters" style=" /*height: some_pixel*/; "><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div>





阅读更多: Css在代码镜像编辑器中无法正常工作



Codemirror CSS


这篇关于如何在代码镜像中应用css文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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