Insert code with syntax highlighting function in word

In the daily use of word, especially when it is necessary to insert the code, copy and paste the code directly into the word, the display is not beautiful, the key is that the display is also a low batch when transferring to pdf, I will explain it to everyone today The tips on how to insert the code with syntax highlighting function in word is actually very simple. We only need to use the function of a website to get it. The URL: http://www.planetb.ca/syntax-highlight-word

Open the URL, you can see the following page after entering

The use method is very simple, just copy the code to the blank area of ​​the illustrated Code, then select the corresponding Language programming language, and finally click Show Highlighted. After clicking, it will jump to another page, similar to the following picture:

At this time, we only need to copy the content of the code and paste it into word to see the code with syntax highlighting function we want.

Published 81 original articles · 21 praises · 30,000+ views

Guess you like

Origin blog.csdn.net/qq_33575901/article/details/95198303