wp-codebox is a code highlighting plug-in produced by Chinese people. Supports multiple languages, code download, copy to clipboard, code box retracting and background default attribute settings.
First, we download the wp-codebox plug-in, decompress it and upload the folder to the wp-content/plugins/ directory; then go to the plug-in management page to enable the plug-in.
How to use wp-codebox:
First switch the editor to HTML mode, and then insert the code according to the following syntax.
<pre lang="LANGUAGE" line="1" file="download.txt" colla="+">Code content</pre>
The official download address of the plug-in: Click directly to
Plug-in syntax explanation:
lang="LANGUAGE": code language, such as ASP, PHP, Java, etc.
file =”download.txt”: Create a downloadable save name
line=”N”: Starting line number
colla=”+/-”: “+” means expand, “-” means shrink
