-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Separate HTML and XML languages in code blocks? #5794
Comments
Let's answer here a question of how do other highlighters treat HTML and XML. As one thing or separate things. |
The rules of these two languages are just too different to be treated in the same way. Valid HTML, invalid XML:
Valid XML, invalid HTML:
|
highlight.js uses the same highlighter for HTML and XML. Prism, on the other hand, separates them. FYI, I'm OK with separating them. But I don't think this is a big enough issue since nobody voted for this issue so far. Also, please keep in mind, we're talking about the default configuration here only. Developers who don't like the HTML/XML coupling can create a config on their own with whatever they find necessary. |
OK, let's keep the current defaults and wait for feedback. |
Other: XML and HTML will not be treated as the same language. Closes ckeditor/ckeditor5#5794.
They are treated right now as the same thing:
But HTML is not a valid XML and perhaps may break code highlighters. Plus it is not correct to mark HTML as XML semantically.
I'd have two separate positions.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: