ele828 / hexo-prism-plugin

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

Syntax highlighting does't work #25

Closed jaskiratr closed 6 years ago

jaskiratr commented 7 years ago

Hi, I'm unable to see any highlighting work. I've configured config.yml correctly as well

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace:
prism_plugin:
  mode: 'preprocess'    # realtime/preprocess
  theme: 'okaidia'
  line_number: false    # default false

Expectation: .js code in markdown to be highlighted. Below is a screenshot from text editor image

Behaviour: No highlighting in the web browser image

No errors in browser console either. Not sure what's going on...

sunningoo commented 6 years ago

check if you had cloned prism-themes

jaskiratr commented 6 years ago

I ended up not using the plugin and used prism.js and one of the themes .css files. Thanks for pointing to the themes repo.