Skip to content

Why not whole JavaScript snippet is syntax hightlighted? #10777

Closed Answered by Josh-Cena
jcubic asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at the inspected DOM, you see that the tokens do get correct class names like operator and boolean. However, the particular theme you've chosen does not give any of these tokens special colors. Either choose another theme, or enhance this theme, following our guide here: https://docusaurus.io/docs/markdown-features/code-blocks#theming

Replies: 1 comment

Comment options

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