From 3e65a4c65e649bfb3abee542b50b0b3e250023ca Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Tue, 28 Mar 2023 19:14:00 +0800 Subject: [PATCH] add prism language list --- ...ode-highlight-prism-supported-languages.md | 31 +++++++++++++++++++ tools/code-highlight.md | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 tools/code-highlight-prism-supported-languages.md diff --git a/tools/code-highlight-prism-supported-languages.md b/tools/code-highlight-prism-supported-languages.md new file mode 100644 index 0000000..f52a2fb --- /dev/null +++ b/tools/code-highlight-prism-supported-languages.md @@ -0,0 +1,31 @@ +--- +title: "ref: Prism - 支持的语言" +--- + +[< Back](./code-highlight) + +下面列出了包含它们的别名的,目前 Prism 支持的全部 297 个语言。通过定义 css 类型 language-xxxx(或 lang-xxxx)来使用 xxxx。 + +> This is the list of all 297 languages currently supported by Prism, with their corresponding alias, to use in place of xxxx in the language-xxxx (or lang-xxxx) class: + + + + \ No newline at end of file diff --git a/tools/code-highlight.md b/tools/code-highlight.md index c9038a1..dd6a97f 100644 --- a/tools/code-highlight.md +++ b/tools/code-highlight.md @@ -16,6 +16,8 @@ ph-Bookshelf 默认开启了 [Prism] 代码高亮支持,你可以将配置节 Prism 不会自动为所有代码块着色,所以不指定 `language-xxx` 即不会对代码块高亮。 +你可以在页面 [ref: Prism - 支持的语言](./code-highlight-prism-supported-languages) 找到你可以使用的高亮语言列表。 + ## 配置高亮/代码块样式 // todo