diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-07-29 04:52:05 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-07-29 04:52:05 +0300 |
commit | c2914816e1611e252986cae02da700b95a2ae652 (patch) | |
tree | 556801de601d9f1dcedc5ea1105ca42205c177a2 | |
parent | 2b50ce922a1815416a34b347c4e4d63acdf8cb26 (diff) |
how to support more languages with prism
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -74,6 +74,11 @@ See the [full list of supported shortcodes](https://cupper-hugo-theme.netlify.co Syntax highlighting is provided by [Prism](https://prismjs.com/). See this [markdown code fences example](https://cupper-hugo-theme.netlify.com/cupper-shortcodes/#syntax-highlighting). +By default, only a few languages are supported. If you want to add more, follow these steps: + +1. Select the languages you want from <https://prismjs.com/download.html> +1. Download the JS file, then copy it to `static/js/prism.js` +1. Download the CSS file, then copy it to `static/css/prism.css` ## Disable toc for a blog post |