web-mode
web-mode copied to clipboard
[WIP] Add class and tag faces
Hello, I've added two new faces: web-mode-css-selector-class-face
and web-mode-css-selector-tag-face
.
I'd like to enhance web-mode
's css highlighting abilities, eventually being able to highlight syntax like so:
At the moment I just added the ability to differenciate between class selectors (.myclass { ...}
) and tag selectors (div {...}
).
Ideally I would add some more rules, and I'm sure what I already added could be improved, it's not perfect yet but a proof of concept. Before continuing working on this however, I'd like to know if a change like this is welcomed and whether or not I should keep going with this.
Cheers.
LGTM :smile:
What does @fxbois think?
@minikN good idea
thx