jekyll设置rouge高亮风格

万修为
2023-12-01

获取rouge支持的风格

执行如下命令:

rougify help style

输出结果:

usage: rougify style [<theme-name>] [<options>]

Print CSS styles for the given theme.  Extra options are
passed to the theme.  Theme defaults to thankful_eyes.

options:
  --scope       (default: .highlight) a css selector to scope by

available themes:
  base16, base16.dark, base16.light, base16.monokai, base16.monokai.dark, base16.monokai.light, base16.solarized,
  base16.solarized.dark, base16.solarized.light, colorful, github, gruvbox, gruvbox.dark, gruvbox.light, igorpro,
  molokai, monokai, monokai.sublime, thankful_eyes, tulip

设置风格

根据自己的喜好选一个,例如选用github风格(_highlighting.scss是jekyll网站配置语法高亮的css文件,根据情况修改):

rougify style github > _highlighting.scss
 类似资料: