Skip to content

怎么把代码块单独设置成黑色主题呢? #977

Answered by plain-dev
zeng-yq asked this question in Q&A
Discussion options

You must be logged in to vote

article:
# Code highlight settings
highlight:
# Code highlight themes
# https://github.com/highlightjs/highlight.js/tree/master/src/styles
theme: atom-one-light
# Show copy code button
clipboard: true
# Default folding status of the code blocks. Can be "", "folded", "unfolded"
fold: unfolded

修改配置文件中的 theme 字段为喜欢的主题

▶ 点击预览所有主题

比如 Atom One Dark,打开此链接找到对应的 CSS 名称 atom-one-dark

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zeng-yq
Comment options

Answer selected by zeng-yq
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