Closed TheNetAdmin closed 7 years ago
Did you check highlight: enable: false
in /_config.yml
? hexo-prism-plugin only work turn false
I turned
highlight:
enable: false
and add
prism_plugin:
mode: 'preprocess' # realtime/preprocess
theme: 'default'
line_number: true
to _config.yml
in the site config.
But it doesn't work.
I try to generate with hexo clean&hexo g
and hexo clean&hexo s
it doesn't work.
line_number
option not work too, but I try to add a !important
in line-numbers.css
line number is shown.
But highlight not work yet.
@TheNetAdmin @cubesky I just released hexo-prism-plugin V2.0, please try to install it again.
If you still couldn't make it, just let me know more details, and I will fix it.
Thanks :)
The error description is "Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin." That troubled me a lot and I still can't sovle it yet.
The error description is "Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin." That troubled me a lot and I still can't sovle it yet.
The same to me, and I test lots of combo cases but no one works, either it will cause a fatal error or it runs but doesn't work correctly. I'm tired of this. :(
Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin.
Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin.
The same error to me
我尝试将prism_plugin的设置代码插入到
/_config.yml
或者/theme/some_theme/_config.yml
,但是实际生成的页面并没有prism高亮的代码块