I need to use MS Word to make some documentation for python code. Line number, or boxing around the code, or anything would be better than just use normal format.
Is there any good/useful style/method for code documentation purposes?
|
I need to use MS Word to make some documentation for python code. Line number, or boxing around the code, or anything would be better than just use normal format. Is there any good/useful style/method for code documentation purposes? |
|||
|
|
|
Do you have an editor that formats python code for you? I ask because visual studio will copy C#/C++/VB code onto the clipboard with formatting intact so that when pasted into word it looks identical (give or take line lengths). |
|||
|
|
|
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. |
|||
|
|