Is there any useful style of MS Word for code?

Do you have an editor that formats python code for you? I ask because Visual Studio will copy code onto the clipboard with formatting intact so that when pasted into word it looks identical (give or take line lengths).

Visual Studio itself supports python now. The Community Edition doesn't have the somewhat restrictive licensing limitations of the old Express edition; meaning it's likely to be an - admittedly heavyweight - option to get formatted code into other documents even if your preferred editor doesn't put syntax highligfhed code onto the clipboard.


At the most basic you can select a monospaced font - usually Courier New - as your code font. You won't get all the syntax highlighting, but it will stand out from the rest of your document.