FichteFoll / CSScheme

Create Sublime Text or Text Mate color schemes in CSS, SCSS or stylus
MIT License
43 stars 4 forks source link

Make every scope a class. #13

Closed pradyunsg closed 3 years ago

pradyunsg commented 8 years ago

Much like Atom syntaxes, it would be nice if the first scope would (optionally, because backwards compatibility) be a class-name instead of a tag name. This would require some changes here and there, but I feel it might be worth it because then it would be possible to support both Atom and Sublime Text with the exact same LESS code. Yay!

Anyone thinks this might be a good idea.

Sidenote: Why is this package not used more!? Please advice/advertise. :wink:

FichteFoll commented 8 years ago

Does Atom care about the order of scope parts, which we interpret as "classes" in CSScheme? What I mean is, does Atom differentiate between .source.css and .css.source? If it does not, than I would prefer not to "dumb it down" to Atoms level but rather add a compatibility layer that omits leading dots for each scope name and not make it a standard (most notably when converting to CSScheme's format).

... We really need some good terminology for all parts of a "scope".

Why is this package not used more!? Please advice/advertise.

Probably exacly because of that: bad advertisement. I try to mention it whenever it becomes relevant, but I wonder if others do as well.

pradyunsg commented 8 years ago

What I mean is, does Atom differentiate between .source.css and .css.source?

Nope. I don't think we want any smartness in this code. It just converts the CSS to plist files.

pradyunsg commented 8 years ago

... We really need some good terminology for all parts of a "scope".

I'll give it a shot... I've borrowed from TextMate where I felt it was useful.


source.python.3 meta.function.python.3 variable.parameter.function.python.3

Of course, because we might need to refer to elements in relation to each other, we can use the Parent-Child relationship.


I suggest adding whatever would be finalized to this Project's Wiki.

pradyunsg commented 7 years ago

Bump.

pradyunsg commented 3 years ago

Closing this out since it seems unlikely that either of us are gonna work on this. :)

FichteFoll commented 3 years ago

All right, I didn't have a good argument for it in the first place.