ele828 / hexo-prism-plugin

Hexo plugin for code highlighting by prism.js, supporting JSX syntax
204 stars 51 forks source link

How to add a theme #28

Open sunningoo opened 6 years ago

sunningoo commented 6 years ago

I want to add a style sheet, I new a css file named "prism-sub-dark.css" and change some colors, and then I changed "_config.yml" like below:

prism_plugin: mode: 'preprocess' # realtime/preprocess theme: 'sub-dark' line_number: false

but it didn't works, if I need change another settings? Thank you.

Terry-bear commented 6 years ago

我在config里面配置了markdown主题样式,但是显示不出来。 config的配置是没有问题的,静态页面用的是```+``` 的形式。

gadfly3173 commented 4 years ago

Maybe this is a too late reply. You can use yarn or npm add a package named 'prism-themes'.It has many themes can be used in this plugin.And you can also make your own customized theme with its guide.

Terry-bear commented 4 years ago

@gadfly3173 It's been solved. It's really too late reply😹