请问代码高亮是用哪个库做的 #113
-
这个代码高亮效果非常nice,我也不是主攻前端的,一时半会看不出来,麻烦知道的朋友告诉一下 |
Beta Was this translation helpful? Give feedback.
Answered by
HEIGE-PCloud
Jun 21, 2021
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HEIGE-PCloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
没有使用第三方库,相关的 CSS 在这两个文件中:
https://github.com/HEIGE-PCloud/DoIt/blob/main/assets/css/_partial/_single/_code.scss
https://github.com/HEIGE-PCloud/DoIt/blob/main/assets/css/_variables.scss
Tokenization 是由 Hugo 处理的:
https://gohugo.io/getting-started/configuration-markup/#highlight
https://gohugo.io/content-management/syntax-highlighting/