Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prism不起作用 #5

Closed
TheNetAdmin opened this issue Jan 9, 2017 · 8 comments
Closed

prism不起作用 #5

TheNetAdmin opened this issue Jan 9, 2017 · 8 comments

Comments

@TheNetAdmin
Copy link

我尝试将prism_plugin的设置代码插入到/_config.yml或者/theme/some_theme/_config.yml,但是实际生成的页面并没有prism高亮的代码块

@hahnlee
Copy link
Contributor

hahnlee commented Jan 19, 2017

Did you check highlight: enable: false in /_config.yml? hexo-prism-plugin only work turn false

@cubesky
Copy link

cubesky commented Feb 16, 2017

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.
image

I try to generate with hexo clean&hexo g and hexo clean&hexo s it doesn't work.

@cubesky
Copy link

cubesky commented Feb 16, 2017

line_number option not work too, but I try to add a !important in line-numbers.css line number is shown.
image

But highlight not work yet.

@ele828
Copy link
Owner

ele828 commented Feb 20, 2017

@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 :)

@ele828 ele828 closed this as completed Feb 20, 2017
@kuuhaku-w
Copy link

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.

@STCloudLake
Copy link

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. :(

@ghost
Copy link

ghost commented Aug 28, 2022

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.

@EarendelH
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants