打开网址http://www.planetb.ca/syntax-highlight-word,将代码复制到code区域 点击红线处的按钮,将生成的代码直接复制粘贴到word文档中,即变成Notepad++中的格式。