Skip to content

May I know the file that manages the code blocks? #1752

Answered by huanyushi
drj9812 asked this question in Q&A
Discussion options

You must be logged in to vote

See here, chirpy use rouge to highlight code. And the list of supported languages and lexers can be seen here.

If you want to change the color, relevent settings can be seen syntax-dark and syntax-light.

Run rougify help style to get the avaliable themes list:

base16, base16.dark, base16.light, base16.monokai, base16.monokai.dark, base16.monokai.light, base16.solarized, base16.solarized.dark, base16.solarized.light, bw, colorful, github, github.dark, github.light, gruvbox, gruvbox.dark, gruvbox.light, igorpro, magritte, molokai, monokai, monokai.sublime, pastie, thankful_eyes, tulip

You can choose one of themes to get the css file, and cover the original scss file. For example, you can ch…

Replies: 1 comment 4 replies

Comment options

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

@huanyushi
Comment options

@drj9812
Comment options

@huanyushi
Comment options

Answer selected by kungfux
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