Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 925 Bytes

File metadata and controls

44 lines (35 loc) · 925 Bytes
type title linkTitle date draft nav_icon series categories tags authors aliases
docs
语法高亮模块
语法高亮
2023-02-15 10:11:42 +0800
false
vendor name
bs
code-slash
文档
模块
语法高亮
HB
/zh-hans/docs/modules/syntax-highlighting/

HB 提供了数十个语法高亮显示模块,本文将列出所有支持的样式。

要求

你需要禁用 markup.highlight.noClasses 以使用该模块。

{{< bs/config-toggle filename=hugo >}} {{% code-snippet config.yaml %}} {{< /bs/config-toggle >}}

Modules

在线预览所有样式

{{% bs/alert warning %}} {{% markdownify %}} 模块路径不包含下划线(_),你需要将其替换为破折号(-),比如 algol_nu 应该替换为 algol-nu。 {{% /markdownify %}} {{% /bs/alert %}}

{{% syntax-highlighting-modules %}}