当前位置:网站首页>How to insert highlighted code blocks in WPS and word

How to insert highlighted code blocks in WPS and word

2022-07-08 00:13:00 chengwei1128

Need to use Notepad++.

step1

First of all, we need to Notepad++ It's installed in the car NppExport plug-in unit .
Steps are as follows :
The first 1 Step : open “ Plug-in management ”.
 Insert picture description here
The first 2 Step : Search and install “NppExport” plug-in unit .
 Insert picture description here
After installation , The installed interface is shown in the following figure :
 Insert picture description here

step2

Then copy the code in Notepad++ in , And save it as the corresponding file type , Such as C The document is .c Files of type . Otherwise, the code is in Notepad++ Will not highlight .
 Insert picture description here

step3

Select the code to insert , Click on the plug-in –NppExport–Copy RTF to clipboard.
 Insert picture description here

step4

stay WPS、Word When pasting with the right mouse button , Click... In the pop-up list “ Paste special ”.
 Insert picture description here
 Insert picture description here
( Suggest : First insert a table with rows and columns , Then paste it into the form . You can circle the code , Relatively clear and tidy )
 Insert picture description here

原网站

版权声明
本文为[chengwei1128]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130552084480.html