Skip to content

Highlight specific lines of code in a code block #1772

Answered by NichtsHsu
acheddir asked this question in Q&A
Discussion options

You must be logged in to vote

Jekyll currently only supports code blocks generated from {% highlight %} to highlight specific lines. However, this syntax is not compatible with the Chirpy theme.

That is to say, currently do not have a native method to achieve this requirement. You must handle it yourself - writing a jekyll plug-in, or writing a js script, or something else.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by acheddir
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