Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to define own syntax on a GitHub repository?

I'm writing a small DSL, and I'm curious if it's possible to somehow show it in a language bar above the repository source where all languages are listed by percentage of using or GitHub administration needs to allow that language?

For example, I'm writing a Ruby project with the DSL called Puppy, and I want to show the percentage of all files with the .puppy extension beside other languages.

like image 691
Nikola Stojaković Avatar asked Jul 29 '16 21:07

Nikola Stojaković


1 Answers

Looks like you need add your language to Linguist library (https://github.com/github/linguist) which GitHub utilize to recognize source code languages.

according to: https://help.github.com/articles/my-repository-is-marked-as-the-wrong-language/

like image 108
R A Avatar answered Nov 20 '22 04:11

R A