Эх сурвалжийг харах

how to support more languages with prism

zwbetz-gh 4 жил өмнө
parent
commit
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