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?

link|improve this question

74% accept rate
feedback

2 Answers

up vote 3 down vote accepted

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).

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.