Specific operation:
1, here is a small text editor software notepad++.
2. Open notepad++, write your own code, click Edit in the menu bar above, click Edit in the drop-down list, and add numbers to the code.
3. After editing the column block, select the inserted number, with the initial value of 1 and the increment of 1, and finally click OK.
4. We see that there is no space in front of the line number. We need to hold down the Alt key to select the column, select the first blank column of the code, press the tab key to move the code back, and then repeat the above step 2 to get the line number of the previous code.
5. Next, select all the codes to be copied, and then use the tools in the plug-in to copy them to the pasted version, and then paste them into word. I need to paste the copyRTFtoclipboard into the original format without any random lines, and some can use HTML format or allFormats, so I can choose which version to use for my Word.
6. Select the code and insert-> Text box->; Level->; Ok, to get the final rendering, drag the text box, which can be aligned to the left or centered. The code will automatically move with the text box, and the effect is beautiful.