目前NexT主题最新版本中已经集成了tomorrow-theme语法高亮模块儿,并且内置五种风格,下面是主题配置文件相关部分:
# Code Highlight theme
# Available values: normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: night eighties
若发现设置后没有效果,需要将上述提到的repo克隆到themes/next/sources/lib文件夹下即可。
显示效果实图:
此版本代码高亮不是很好用也不是很好看,动手能强可以换用Google出品的code-prettify 。
更多相关:UFAN0