0 Preface
When we copy the code to enter the word documents, direct copy will not look good, use the site http://www.planetb.ca/syntax-highlight-word can copy the code word elegant to the document!
1. Use
Paste the code to enter, choose the code language, click Show Highlighted
Select all Ctrl + A, Ctrl + C to copy, Ctrl + V can be pasted into the word document
2. Some problems
When the code is pasted into the document word by this method can be a good show, but copied from the document (WPS Office and will be) in the code, the top of each line of code displays the number of rows. . . I did not know how to deal with
But if you copy and paste it from the site before, this problem does not occur: