如何为代码块指定语言?
#307
-
编写文章的时候使用了 WP 自带的代码块功能,Iro 主题有适配代码块的语法高亮,但不知道怎么指定代码语言,现在代码块的语言在瞎识别,基本没正确过。 |
Beta Was this translation helpful? Give feedback.
Answered by
KotoriK
Aug 24, 2021
Replies: 1 comment 4 replies
-
<pre><code class="language-css">p { color: red }</code></pre> 参见https://highlightjs.org/usage/ 原来写在Discussion里我还在issue找了好久 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
LamGC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参见https://highlightjs.org/usage/
https://prismjs.com/#basic-usage
原来写在Discussion里我还在issue找了好久