瀏覽代碼

how to support more languages with prism

zwbetz-gh 4 年之前
父節點
當前提交
c2914816e1
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      README.md

+ 5 - 0
README.md

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