1.打开 http://www.planetb.ca/syntax-highlight-word 2.粘贴代码在Code框内,选择语言,再点击生成代码 3.生成代码格式如下。 4.把代码复制粘贴到word中,搞定!