Преглед на файлове

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