how to change the category? #23333
-
how to change the category? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
You are seeing CSS as your main language because it is the most-used in that repository. Other than adding more source languages to your repository, I do not think there is any manual way to change that displayed language. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @ura2rist, Welcome to the Github Community Forum! You cannot change the language of the repository, but you can change the attributes of the github repository. I mean that if you have a project where there are 60% css and 40% javascript you can said to github-linguist, that you want to ignore the css file. To do that you need to:
With this 3 steps you can ignore detection for a specific languages. You can also add more attributes, for example something like this:
this attributes ignore the java files. Hope this helps… Ps: if you need some screenshots ask… -Gabriele- Mark helpfull posts with Accept as Solution to help other users locate important info. Don’t forget to give Kudos for great contents! |
Beta Was this translation helpful? Give feedback.
-
The solution for ignoring html files could be found here github-linguist/linguist#4769 |
Beta Was this translation helpful? Give feedback.
-
just create .gitattributes in the root folder of your repository, and give it these contents:
This example tells GitHub/Linguist to ignore all files and look at .dart files. You can also add another language you want as long as the format files are included in your repository |
Beta Was this translation helpful? Give feedback.
-
You can find language aliases here: |
Beta Was this translation helpful? Give feedback.
-
#Response 1 |
Beta Was this translation helpful? Give feedback.
Hi @ura2rist,
Welcome to the Github Community Forum!
You cannot change the language of the repository, but you can change the attributes of the github repository. I mean that if you have a project where there are 60% css and 40% javascript you can said to github-linguist, that you want to ignore the css file.
To do that you need to:
create a .gitattributes file in the root of the project
edit that file and add a line to ignore the css language file
*.css linguist-detectable=false
*.js linguist-detectable=true
add, commit and push to remote and see the result
With this 3 steps you can ignore detection for a specific languages. You can also add more attributes, for example something…