MS Word copy/paste ...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

MS Word copy/paste problems - help!

6 Posts
6 Users
1 Reactions
219 Views
Posts: 91000
Free Member
Topic starter
 

A long shot, but:

I'm writing an educational document that has code in it, that students will have to copy code snippets from and paste into Visual Studio Code (text editor for coding). I've formatted the code as a monospaced paragraph style and with single line spacing.

Problem is that when I copy from MS Word Online it pastes into VS Code with double spacing which is a ball-ache. If I print to PDF, it gets pasted without any formatting. I can copy out of actual MS word on my own laptop but the students will be working on a VM, which can't have MS Word on it.

Anyone had this issue copying out of MS Word Online?


 
Posted : 20/08/2023 9:58 pm
Posts: 9763
Full Member
 

The online version of word is a very odd beast and can’t display lots of stuff correctly

I don’t know the answer I’d try a few things. They may not work at all but I’d try them

Open the document in google docs and see if that is better. Can the students access google docs?

Save the the document as rtf (rich text format ) from word and then upload to one drive. See if that opens in online word and see if it behaves differently

Does the destination have a paste options like excel. For example “use source formatting”, “paste as text only” that might solve it

Dues saving as a web page or converting to a web page solve the problem


 
Posted : 20/08/2023 11:07 pm
Posts: 91000
Free Member
Topic starter
 

I tried WordPad, doesn't format the rest of the doc properly.

Thanks but I've given up. I've got to rethink the whole approach.


 
Posted : 20/08/2023 11:56 pm
leffeboy reacted
Posts: 77347
Free Member
 

Do it in Notepad and embed the files?


 
Posted : 21/08/2023 3:11 am
Posts: 10315
Full Member
 

Thanks but I’ve given up. I’ve got to rethink the whole approach.

Good idea. With 'modern' IT you often spend.more time fighting the system.than actually solving the problem you are using it for 🙁


 
Posted : 21/08/2023 7:20 am
Posts: 135
Free Member
 

Have you tried downloading Notepad++
<p style="text-align: left;">Then creating your code in notepad++ then copy and paste into word right click when pasting to see if there is a text only paste option.</p>
I used PS a lot for work and fallen foul of this when copying code from a colleagues word document as word had knacked (technical term ;)) the formatting.


 
Posted : 21/08/2023 7:41 am
Posts: 4985
Full Member
 

I’ve got to rethink the whole approach.

Is the right answer.


 
Posted : 21/08/2023 9:13 am

6 DAYS LEFT
We are currently at 95% of our target!