Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare markup for syntax highlighting? #24

Closed
hidde opened this issue Nov 30, 2020 · 1 comment
Closed

Prepare markup for syntax highlighting? #24

hidde opened this issue Nov 30, 2020 · 1 comment
Labels
question Further information is requested

Comments

@hidde
Copy link
Member

hidde commented Nov 30, 2020

To do syntax highlighting, we'll need to indicate in each code example what language it is in, and for some, if they are in multiple languages, split them into multiple. We could then apply something like Prism, with an accessible color scheme.

Suggestion:

  • use code elements with pre elements inside of them, add (programming) language definition with lang-* pattern described in HTML spec, the code element
  • retroactively add this around all code examples in Techniques and Understanding docs
@hidde hidde added the question Further information is requested label Nov 30, 2020
@hidde
Copy link
Member Author

hidde commented Mar 2, 2021

We're now doing that automatically without indication of language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant