27

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

3 Answers 3

18

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.

6
  • Exactly. @Volodymyr, where are you trying to paste into? Feb 7, 2013 at 8:23
  • Trying to paste it on another tab in the same browser, to another SE site as an answer. Feb 7, 2013 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). Feb 7, 2013 at 8:26
  • I see, so only manual formatting is possible, which is pretty time-consuming:(. Feb 7, 2013 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, 2013 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!

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .