1.下载notepad++。
2.将代码粘贴进notepad++,或者直接用notepad++打开。
3.点击顶栏 ===> 插件 ===> NppExport ===> cope HTML to clipboard。
4.然后在word中直接ctrl+v即可实现高亮。