Publishing Code from Word 2007
I found a way to trick word in publishing code with the correct format and spacing.
You can do a find replace on:
- "^p" (paragraph) with "^l" (newline)
- " " (4 spaces) with "^t" (tab)
I don't know if there is a better way but this works quite well check the beautiful formatting here and here