Closed feimosi closed 5 years ago
There was a huge overhaul of the style rules for 9.0, and the change you're describing is an intentional decision. We now have both attr
and attribute
with slightly different semantics, and attribute names within XML tags get the "less important" attr
which is not highlighted in many styles by choice.
Having said that, if you want to advocate Tomorrow in particular should have a different color for "attr", we should pick a color that doesn't break other usages of this class name in [crmsh fix gcode haml htmlbars ini javascript json nix puppet xml yaml].
Well, I didn't know that, but still I reported the issue because styling after the update is worse for my HTML snippets.
For comparison, here's how it used to look like: Here's how the new Tomorrow-Night looks like:
If we just change the CSS rule to use hljs-attr
instead of hljs-attribute
, we can achieve:
Note: on this example I also 'fixed' < >
Closing this:
Trying to clear out old issues.
highlight.js
used to appendhljs-attribute
class in the past, but now it'shljs-attr
. Unfortunately styles are not updated to match that. I've spotted it after migrating from 8.1 to 9.10. See https://github.com/isagalaev/highlight.js/blob/master/src/languages/xml.js#L14 and https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night.css#L37