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

Adding language class to code tags as recommended by HTML5 specs #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mfeltscher
Copy link

Specifications by W3C recommend to add a class to the code tag to indicate the language being used. Several code highlighting libraries, such as Prism or highlight.js, use this declaration to determine which language is being used.
Specifications can be found here: http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element

@DavidBadura
Copy link

i need this 👍

@mfeltscher
Copy link
Author

@DavidBadura Nice to hear, unfortunately it seems like this project no longer gets maintained. Any idea which fork is still getting maintained so I could apply my change there?

@DavidBadura
Copy link

sorry for the late answer. until now there is no such fork but someone should create a fork. do you want to maintain it? :-P

@mfeltscher
Copy link
Author

@DavidBadura I'm not sure if I find the time to maintain a fork. I guess there are other forks around which I could apply my pull request to. Could you have a look at all the forks and let me know, which would suit your needs best? :)

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

Successfully merging this pull request may close these issues.

2 participants