probberechts / hexo-theme-cactus

:cactus: A responsive, clean and simple theme for Hexo.
https://probberechts.github.io/hexo-theme-cactus/
MIT License
3.2k stars 784 forks source link

Unable to highligh Solidity code #322

Closed nvnx7 closed 2 years ago

nvnx7 commented 2 years ago

With current config Solidity language code blocks are not highlighted and I'm unable to figure out how to enable it. Can you pls show me how to go about adding the support?

probberechts commented 2 years ago

Hexo has two built-in syntax highlight libraries, highlight.js and prismjs. It seems that only prismjs supports the Solidiy language, but this theme is configured to use hishlight.js (we use Hexo's default settings). In the Hexo docs you can find instructions on how you can enable prismjs instead.