How to make the code beautiful in the report (Notepad++)

        There must be a lot of people who are writing papers. When writing reports, they have encountered a problem, how to put the code in the paper beautifully. I downloaded some graduation thesis on HowNet before, and found that the authors handled the codes in the papers differently. Some authors directly put part of the code screenshots in the paper, some directly copy the code into the paper, and some will make a three-line table and put the code in the three-line table (usually pseudo-code, less will look better) . Next, I will describe how to use Notepad++ to copy the code into the paper (there will be a highlight effect).

Choose the form of code (such as C language).

How to copy the format of the code to WORD.

Tips:

What to do if the copied code has multiple blank lines.

Guess you like

Origin blog.csdn.net/m0_53573725/article/details/132584470