I am using Windows 11 (64-bit) and Office Professional Plus 2021 running locally on my PC.
I have double-checked that all updates have been installed. It says that I have Microsoft Word 2021 MSO (Version 2207 Build 16.0.15427.20182) 64-bit
For quite a while I have been copying code snippets from the web. These snippets were formatted very carefully using indents, all lower case, and various parts of the code were done in different colors. The code was part of a programming tutorial I was going through.
When I wanted to copy a code snippet I would select the code I wanted, and use CTRL-C (to copy)(I also tried using the menu command copy). I would then go to the Word document and use CTRL-V (to paste)(I also tried using the menu command paste) and what I had pasted retained all the formatting as it was displayed on the web page.
One day I went to continue this tutorial and when I pasted the copied code it retained the formatting, except for the colors. The pasted code was in standard black text. I liked it when the code was in colors as it helped me see what I wanted to see and understand the different parts of the code and what was happening.
To this day, it will not paste in color. Here are the things I have tried:
- I went to a totally different website that contained colored text. It would not retain the colors when pasting in Word using CTRL-C and CTRL-V.
- When using the menu paste function the only option displayed was "keep text only"
- In Word I went to File -> Options -> Advanced and went to the cut, copy, and paste options in word and all of the settings were "Keep Source Formatting" I also insured that the Show Paste Options when content is pasted box was selected.
- I have dug around the web to try to find answers and have found nothing.
Is this a Word problem or a Windows problem?
What is the solution?
This worked just fine when I started and worked for over a month until one day it stopped working. I have no idea if I did something to cause this or what could have happened.
If you can offer any solutions, I would be very grateful