Skip to content

Code blocks should be able to display whether a word is a keyword or variable #352

Discussion options

You must be logged in to vote

Yari uses Prism's basic/default JS highlighting. To highlight advanced JS components Prism has provided js-extras. If yari uses the extras then more advanced highlighting can be achieved:

If we wish to do this then please raise an issue in mdn/yari repo and ping me. I'll be happy to work on it. 😄


We can extend Prism's JS language definition and add Web API interfaces that are global and static methods. This will make code more easy to grasp and it'll be a unique feature for MDN Web Docs site.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by luroc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants