语法高亮的XML下载地址
https://github.com/Edditoria/markdown_npp_zenburnhtml
若是经过Windows Installer安装的Notepad++,能够将XML重命名为 userDefineLang.xml 直接拷贝至 %APPDATA%\Notepad++ 生效。
最后一行的语法高亮经常有问题,解决方法是在最后一行文本末尾按下回车。git
以为代码亮粉色不如改成淡墨蓝色,变动上述XML中的github
<WordsStyle name="DELIMITERS2" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
为markdown
<WordsStyle name="DELIMITERS2" fgColor="002D7A" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
Settings --> Preferences --> Editing --> Enable(Ctrl+Mouse click/selection)code
对多个粗体关键字同时添加** **颇有用xml
全局变量可用于 Run 中,在Notepad++中按 F5 便可弹出 Run 窗口htm
$(FULL_CURRENT_PATH) : E:\my Web\main\welcome.html $(CURRENT_DIRECTORY) : E:\my Web\main $(FILE_NAME) : welcome.html $(NAME_PART) : welcome $(EXT_PART) : html $(NPP_DIRECTORY) : the full path of notepad++'s directory $(CURRENT_WORD) : word(s) you selected in Notepad++ $(CURRENT_LINE) : current line number $(CURRENT_COLUMN) : current column number