I'm trying to collect thousands of code lines from the programming tool to Microsoft Office Word 2010 to prepare a book, but when copying the code to Word, it looks horrible. The semi-columns and brackets are in the wrong places; it looks like this:
It's hard to write the whole code manually again. Any help??