-
Notifications
You must be signed in to change notification settings - Fork 72
Support for Dana #12
Comments
Do you mind pasting the content of the less file here? If all goes well, language specific selectors shouldn't be needed. The ones that are currently in |
.source.dana {
.keyword.requirements.dana {
color: @hue-4;
}
.keyword.component.dana {
color: @hue-3;
}
.storage.constructs.dana {
color: @hue-2;
}
.storage.type_2.dana {
color: @hue-5;
}
.keyword.provision.dana{
color: @hue-3;
}
} Yes, I do realise that it shouldn't be necessary. The language pack does work, this modification makes it better visually though for the specific theme |
Thanks for the example. Most Atom themes got ported from TextMate and follow its naming conventions. So using scope selectors like But I also understand that just using Hmmmm... lately I've been thinking.. should language packages, next to defining the selectors, also do the styling? Syntax themes would still provide the color variables, but the languages decide how to use those color variables. Like the example you posted, the logic which color gets used for which selector. Could be done like base16 themes. Provide 8 monochrome colors and 8 saturated. Anyways.. that's maybe for a 2.0 release. In the meantime... how do you feel about forking this theme and publish it as the "optimized for Dana" theme. Then you're free to add any styling you like. Downside is that you would need to maintained it and don't get auto updates. |
Ok then, I will do that as suggested, forking and editing. Thanks for your time on this. Atom is indeed amazing, somebody should make a visual theme creating software so that we can all have a consensus on the way to go about doing things (e.g. I edited atom files directly, others used textmate) |
There is a proposal for a refined naming convention. It would add more scopes. Not sure if it would be sufficient in your case.
Me too, I have 2 Atom windows open. One with the theme where I do the editing. And another one with some language examples in "Dev Mode". Then only that window gets updated and I don't mess up my first window. See https://github.com/simurai/language-examples#how-to-use I'll close this for now, but it's a good example to keep in mind. |
Hello guys,
I currently work on a project combining a new programming language with machine learning. I made a syntax highlighter for that language(Dana) in atom that works quite well and I would like to add the .less file in the languages folder of one light as well as the import statement in the one-light-syntax package. I have made those changes locally and all works fine. Is it ok for me to contribute this feature?
The text was updated successfully, but these errors were encountered: