Skip to content

如何为代码块指定语言? #307

Answered by KotoriK
LamGC asked this question in Q&A
Aug 24, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote
<pre><code class="language-css">p { color: red }</code></pre>

参见https://highlightjs.org/usage/
https://prismjs.com/#basic-usage

原来写在Discussion里我还在issue找了好久

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LamGC
Comment options

@LamGC
Comment options

@KotoriK
Comment options

KotoriK Aug 24, 2021
Collaborator

@KotoriK
Comment options

KotoriK Aug 24, 2021
Collaborator

Answer selected by LamGC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants