Skip to content

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

Open
mfeltscher wants to merge 3 commits intokzykhys:masterfrom
mfeltscher:feature-html5-code-language
Open

Adding language class to code tags as recommended by HTML5 specs#48
mfeltscher wants to merge 3 commits intokzykhys:masterfrom
mfeltscher:feature-html5-code-language

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