1、代码复制到notepad++,然后 "语言" tab中选择你想要的格式啦~
2、然后notepad++中,"插件" -> "NppExport" -> "Copy all formats to clipboard".接着粘贴在word中就行了.