tone-syntax
tone-syntax copied to clipboard
Maintainer wanted
Hey, just wanted to say I was interested in possibly becoming a maintainer! What all would that involved I'd like to get started right away!
🎉 In the "Contribute" section https://github.com/simurai/tone-syntax#contribute are steps how to get started. Is that enough clear?
Yeah it's clear enough thanks
Apologies for butting in, but as I'm unfamiliar with syntax support styles in Atom, would if be possible for you to add a link here to give me a heads up Simurai? I'd be keen to give it a go... thanks
@objectkit Here some more infos, but it might not go into details.
What language are you familiar with? Here an example for "Go".
- Doublicate styles/languages/javascript.less so you have a starting point and rename the file to
go.less. - Add the file to styles/languages/_index.less with
@import 'go';. - In
go.lessreplace the styles with
// Go
.@{s}go {
&.@{s}string {
.uno-1();
}
&.@{s}keyword {
.duo-1();
}
}
- Open a
.gofile that has some sample code. You should already see thatstringsandkeywordshave a different color. - Now place the cursor somewhere in the Go sample code that you want to highlight and press
cmd-alt-p. This should open a popup like
- In this example
variable.other.assignment.goit's avariable. We could be more specific with.other.assignment, but maybe ok to highlight all variables the same. So ingo.lessadd the following.
// Go
.@{s}go {
&.@{s}string {
.uno-1();
}
&.@{s}keyword {
.duo-1();
}
&.@{s}variable {
.tri-1();
}
}
- This should make variables have a
tri-1color. Here the whole color palette to choose from. - Once you're happy, commit and send a PR. 🙇
Thinking about it, I might can add a few more languages. So it's easier to get started if there is already some syntax highlighting.
Ok, here a bunch more languages: https://github.com/simurai/tone-syntax/pull/6