how to support more languages with prism

This commit is contained in:
zwbetz-gh 2021-07-28 20:52:05 -05:00
parent 2b50ce922a
commit c2914816e1

View File

@ -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). 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 ## Disable toc for a blog post