highlight: cannot open themes/monokai.theme: No such file or directory
highlight命令行对应的主题文件夹 /usr/local/Cellar/highlight/4.6/share/highlight/themes
,需要下载指定的.theme文件到这个主题文件夹下
然后再次执行
highlight --style moria -k "Fira Code" --font Inconsolata -K 18 -u "utf-8" -t 4 -O rtf xxxx | pbcopy
其中 xxxx 代表文件名字
moria
代表粘贴的代码风格,Inconsolata
代表代码字体
这两个都是可以更改的
highlightjs主题样式可以通过这个网址来查看: https://highlightjs.org/static/demo/