automatically load hexo code highlighting style, support highlight and prismjs
npm install @jiangtj/hexo-patch-load-highlight-styleautomatically load hexo code highlighting style, support highlight and prismjs
``bash`
yarn add @jiangtj/hexo-patch-load-highlight-style
add theme and theme_dark to the corresponding configuration, theme_dark will be applied when your system theme is dark
`yml``
highlight:
# ...
theme: default
theme_dark: default
prismjs:
# ...
theme: default
theme_dark: default
- support all highlight styles (e.g. {theme:a11y-light} load a11y-light.css)
- support all prismjs and prism-themes styles (e.g. {theme:coy} load prism-coy.css)
- support auto load prism line_number plugin styles
- support auto load prism js when preprocess is false
- use it in default theme (landscape)
1. install it, and then you can use multiple styles
- use it in theme
1. add dependencies
2. load it as hexo plugin (utils)
3. adapt hljs layout (this plugin only loads colors and does not define layout)