When selecting text in a code block, there is no copy command on the context menu

Viewed 8

When selecting text in a code block, there is no copy command on the context menu. Command-c will copy, but there is no copy in the context menu.

1 Answers

Ok, what would you expect the Copy menu item to do? Copy plain text, rtf, html?

I think there are a couple of different situations:

  • If I'm copying text in a code block, usually plain text.
  • If I'm copying an entire document, I'd want some kind of formatting. What I don't know is what is the best kind of formatting. I'm usually pasting into google docs or coda. Something that would retain formatting on paste would be great. For both of those products, it isn't markdown, that's for sure.

For the time being I've added the standard Copy command to the contextual menu. It will copy with formatting. If you copy code and paste it into a text editor, it will likely show up without line breaks. I could feasibly convert the HTML to plain text preserving whitespace, but I think for the most part if people really want the plain text code, they have the original Markdown at hand.