Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintainer wanted #2

Open
Announcement opened this issue Aug 24, 2017 · 5 comments
Open

Maintainer wanted #2

Announcement opened this issue Aug 24, 2017 · 5 comments

Comments

@Announcement
Copy link

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!

@simurai
Copy link
Owner

simurai commented Aug 28, 2017

🎉 In the "Contribute" section https://github.com/simurai/tone-syntax#contribute are steps how to get started. Is that enough clear?

@Announcement
Copy link
Author

Yeah it's clear enough thanks

@objectkit
Copy link

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

@simurai
Copy link
Owner

simurai commented Jan 1, 2018

@objectkit Here some more infos, but it might not go into details.

What language are you familiar with? Here an example for "Go".

  1. Doublicate styles/languages/javascript.less so you have a starting point and rename the file to go.less.
  2. Add the file to styles/languages/_index.less with @import 'go';.
  3. In go.less replace the styles with
// Go

.@{s}go {

  &.@{s}string {
    .uno-1();
  }

  &.@{s}keyword {
    .duo-1();
  }

}
  1. Open a .go file that has some sample code. You should already see that strings and keywords have a different color.
  2. 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
    image
  3. In this example variable.other.assignment.go it's a variable. We could be more specific with .other.assignment, but maybe ok to highlight all variables the same. So in go.less add the following.
// Go

.@{s}go {

  &.@{s}string {
    .uno-1();
  }

  &.@{s}keyword {
    .duo-1();
  }

  &.@{s}variable {
    .tri-1();
  }

}
  1. This should make variables have a tri-1 color. Here the whole color palette to choose from.
  2. 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.

@simurai
Copy link
Owner

simurai commented Jan 2, 2018

Ok, here a bunch more languages: #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants