CodeMirror 复制保留风格
CodeMirror copy preserving style
如何从保留样式的 CodeMirror 复制 javascript
代码。
如果我从 CodeMirror 编辑器复制和粘贴代码,我的着色和样式将被删除。内容粘贴为 text/plain
。有没有办法从编辑器中保存文本格式和样式?
Content is pasted as text/plain
这似乎是正常行为。但是,要从 CodeMirror "preserving the style" 复制,您可以使用 runmode addon according to this answer.
如何从保留样式的 CodeMirror 复制 javascript
代码。
如果我从 CodeMirror 编辑器复制和粘贴代码,我的着色和样式将被删除。内容粘贴为 text/plain
。有没有办法从编辑器中保存文本格式和样式?
Content is pasted as
text/plain
这似乎是正常行为。但是,要从 CodeMirror "preserving the style" 复制,您可以使用 runmode addon according to this answer.