11

Is there a way to copy-paste website content with formatting in Google Chrome? Perhaps an extension that gives such an option?

9

Well, Chrome, or any modern browser, when copying your selection, will always copy the HTML (i.e., with formatting). The software you're pasting it into, however, need to support this (most office programs do, but you might need to select "Paste Special" or Ctrl+Shift+V).

Still, the browser will only copy the HTML, but not the styles associated with it, so any indirect formatting through CSS rules will most likely not be copied and, in fact, it would be very difficult to copy them.

  • Exactly. @Volodymyr, where are you trying to paste into? – Marcus Chan Feb 7 '13 at 8:23
  • Trying to paste it on another tab in the same browser, to another SE site as an answer. – Volodymyr M. Feb 7 '13 at 8:25
  • @Volodymyr That won't ever work, since browser input fields never support formatting, only plain text (unless it's a javascript-based rich edit field, which is not the case for SE sites). – Stefan Seidel Feb 7 '13 at 8:26
  • I see, so only manual formatting is possible, which is pretty time-consuming:(. – Volodymyr M. Feb 7 '13 at 8:34
  • 1
    Stack Exchange sites use MarkDown, so I think you should be able to edit an answer/question to access the MarkDown script and paste that into the other Stack Exchange site as an answer. – Sam Feb 7 '13 at 9:38
1

Like Stefan said, any browser will copy the html, but you need to paste it into a program that will recognise it.

This is something I've been trying to do today, and there are some great wysiwyg editors you can use:

I wish there was a preview mode for these, but well, they work!

0

In Google Chrome, you can select the text (don't need to be completely precise at this step, as you will need to select again), then Inspect (or Ctrl+Shift+I), and then you have options (Copy Outer HTML,Edit as HTML) to copy the HTML code as the 'text/plain' MIME type the text editor prefers.

That might be an add-on free option if your editing environment (my case too) does not provide proper support for pasting MIME flavors other than plain text.

protected by Community Sep 14 '14 at 7:06

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.