步骤:

1. 打开网页 http://www.planetb.ca/syntax-highlight-word 将想要插入的代码复制到code框里面,选择相应的语言,点击Show HighLighted,生成新的代码块。
在Microsoft Word中插入代码块

2. 复制网页新生成的代码块:
在Microsoft Word中插入代码块

3. 将复制的代码块,粘贴到word中
在Microsoft Word中插入代码块

相关文章: