用的是 react-codemirror2
样式文件:
...
.code-mirror{
font-size : 13px;
line-height : 150%;
}
...
引入样式文件:
...
<CodeMirror
className = "code-mirror"
...
/>
...
效果如下:
用的是 react-codemirror2
样式文件:
...
.code-mirror{
font-size : 13px;
line-height : 150%;
}
...
引入样式文件:
...
<CodeMirror
className = "code-mirror"
...
/>
...
效果如下:
转载于:https://www.cnblogs.com/themeth/p/10917471.html