Reputation: 1
I want to paste the code I wrote in Python into a Word document. I have a Macbook. I don't want the code to lose its formatting (indentations and colors). I have already tried it via Insert/Text/Object and with the programs Sublime Text and Atom, unfortunately without success.
Upvotes: 0
Views: 839
Reputation: 101
It seems that Visual Studio Code can copy text with code highlighting, but I don't recommend it. In this case, I think it's best to just post a screenshot to your Word document.
Upvotes: 1