1. Euphoria code on Github

Hello all,

I know Euphoria isn't the most well known language, but with tons of languages that have syntax coloring on Github, Euphoria should too. Euphoria files are still declared as Eiffel files, since Eiffel files have the same extension as Euphoria include files (.e). If COBOL has syntax coloring on GH, then so should Euphoria. I mean it shouldn't be that hard to implement, right? If anyone knows of how to, that would be great.

Also, yes I am still working on my SoLoud wrapper, it should be done this week, for anyone interested.

new topic     » topic index » view message » categorize

2. Re: Euphoria code on Github

Here is the entry point: a list of grammars that Linguist selects to provide syntax highlighting on GitHub.

https://github.com/github/linguist/blob/master/vendor/README.md

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria code on Github

Icy_Viking said...

I mean it shouldn't be that hard to implement, right? If anyone knows of how to, that would be great.

This has been a goal since before even moving Euphoria to GitHub since other folks already had projects there. I've been working on it for the past few months: https://github.com/ghaberek/linguist

It's not terribly difficult but there are several hoops to jump through for testing and acceptance. Here is my open pull request: https://github.com/github/linguist/pull/5241

It should be happening soon. Not sure why my pull request hasn't moved recently. I will inquire about that. I'm sure they're just busy.

In the mean time, you can add a .gitattributes file to your project to override the linguist languages in your project. It won't show Euphoria until it's added but at least it will stop misclassifying things as Eiffel or Elixir.

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria code on Github

jmduro said...

Here is the entry point: a list of grammars that Linguist selects to provide syntax highlighting on GitHub.

https://github.com/github/linguist/blob/master/vendor/README.md

I think the CONTRIBUTING.md doc is the correct place to start.

-Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria code on Github

ghaberek said...
Icy_Viking said...

I mean it shouldn't be that hard to implement, right? If anyone knows of how to, that would be great.

This has been a goal since before even moving Euphoria to GitHub since other folks already had projects there. I've been working on it for the past few months: https://github.com/ghaberek/linguist

It's not terribly difficult but there are several hoops to jump through for testing and acceptance. Here is my open pull request: https://github.com/github/linguist/pull/5241

It should be happening soon. Not sure why my pull request hasn't moved recently. I will inquire about that. I'm sure they're just busy.

In the mean time, you can add a .gitattributes file to your project to override the linguist languages in your project. It won't show Euphoria until it's added but at least it will stop misclassifying things as Eiffel or Elixir.

-Greg

Thanks Greg. I noticed .ew and .exw weren't in there. I can add them.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Euphoria code on Github

Icy_Viking said...

I noticed .ew and .exw weren't in there. I can add them.

A .gitattributes file should go into the root of each repo on GitHub, so you're free to put into that while whatever you wish. But you'll have to maintain each repo separately.

FYI, due to GitHub's requirements on "popularity" for adding new extensions, I don't think .ew or .exw will ever be officially added to Linguist.

But Linguist will probably still figure it out for you, or you can add the extension manually into .gitattributes: https://github.com/github/linguist/pull/5241#discussion_r584913606

And it looks like we're in a holding pattern on that pull request, so hopefully they'll pull in my changes with one of the next updates: https://github.com/github/linguist/pull/5241#issuecomment-799482007

-Greg

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria code on Github

ghaberek said...
Icy_Viking said...

I noticed .ew and .exw weren't in there. I can add them.

A .gitattributes file should go into the root of each repo on GitHub, so you're free to put into that while whatever you wish. But you'll have to maintain each repo separately.

FYI, due to GitHub's requirements on "popularity" for adding new extensions, I don't think .ew or .exw will ever be officially added to Linguist.

But Linguist will probably still figure it out for you, or you can add the extension manually into .gitattributes: https://github.com/github/linguist/pull/5241#discussion_r584913606

And it looks like we're in a holding pattern on that pull request, so hopefully they'll pull in my changes with one of the next updates: https://github.com/github/linguist/pull/5241#issuecomment-799482007

-Greg

Ah I see. Thanks for the tips. That's good to hear, hopefully soon, Euphoria will have snytax coloring and be supported on Github.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu