Home >Development Tools >notepad >How to highlight code and paste it into word using notepad++

How to highlight code and paste it into word using notepad++

藏色散人
藏色散人forward
2021-01-05 16:16:495518browse

The following column notepad tutorial will introduce to you how to highlight code and paste it into word in notepad. I hope it will be helpful to friends who need it!

How to highlight code and paste it into word using notepad++

Goal: To see the code in word just like in the IDE tool, as shown in the figure:

If you simply copy the code and paste it into Word, the format of keywords, comments, etc. will be consistent and difficult to read.

As shown in the picture, just copy the code (Ctrl c):

and then paste it directly (Ctrl v) into word:

How to do it?

1. Copy the code in notepad (Ctrl c)

2. Click the plug-in in the menu bar→NPPExport→Copy RTF to clipboard

3. Open word, click Insert → Table, select one row and one column

4. Paste (Ctrl V) into the table

For more notepad related technical articles, please visit the notepad usage tutorial column!

The above is the detailed content of How to highlight code and paste it into word using notepad++. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete