# How to copy text with markup from codemirror editor to other application

**URL:** <https://discuss.codemirror.net/t/how-to-copy-text-with-markup-from-codemirror-editor-to-other-application/539>\
**Category:** Uncategorized\
**Created:** [November 9, 2015, 11:03pm UTC](https://discuss.codemirror.net/t/how-to-copy-text-with-markup-from-codemirror-editor-to-other-application/539 "2015-11-09T23:03:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [November 10, 2015, 8:21am UTC](https://discuss.codemirror.net/t/how-to-copy-text-with-markup-from-codemirror-editor-to-other-application/539/2 "2015-11-10T08:21:15Z")

</div>

Copying from CodeMirror only copies the plain text. The highlighting is purely a display issue, the content is treated as just text. You could use something like the [`runmode` addon](http://codemirror.net/doc/manual.html#addon_runmode) to create a syntax highlighted view that the user can copy from, but that won’t be editable.

---

_[View the full topic](https://discuss.codemirror.net/t/how-to-copy-text-with-markup-from-codemirror-editor-to-other-application/539)._
