Sublime Forum

HTML attribute scope

#1

The guidelines recommends scoping attributes with entity.other.attribute-name, but it could be interesting to have specific one for data like entity.other.attribute-name.data and another for builtin like class, hidden, etc… entity.other.attribute-name.builtin.

The idea would be allow color schemes to give different colors to data and bultin attributes, which could make it easy to spot typos. Any other suggestions?

0 Likes

#2

I’d rather scope the entire attribute/value pair.

0 Likes

#3

That makes more sense, would something like this be better?

meta.attribute.builtin
meta.attribute.data
meta.attribute-with-value.builtin
meta.attribute-with-value.data
0 Likes