You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github uses something called linguist to detect the language / file type of repositories for the purposes of language statistics shown on the main page, syntax highlighting, and organizing search results. In this repository for the RST, a significant number of files are misclassified, eg
but I'm not sure if this is correct, and it is not clear to me under what circumstances the language statistics / syntax highlighting will actually be updated (eg does the file need to be modified by a new commit, or does a new version of linguist need to be pushed out to Github, etc).
Is this something worth pursuing? I personally find it helpful to have the correct syntax highlighting available when browsing code on Github, and it can also be difficult to use the search feature when the file you're looking for appears under the wrong language.
The text was updated successfully, but these errors were encountered:
This looks promising! I don't know why the .gitattributes file doesn't work, since the documentation suggests otherwise. It might also behave differently on github compared to a local install.
Github uses something called linguist to detect the language / file type of repositories for the purposes of language statistics shown on the main page, syntax highlighting, and organizing search results. In this repository for the RST, a significant number of files are misclassified, eg
.pro
files as Prolog (e.g., aacgm_v2.pro).h
files as C++hdw.dat
files as all kinds of different extensions (e.g, hdw.dat.sas).asc
coefficient files as AGS scriptThe
.gitattributes
file I've tried using to override this behavior looks something like this:but I'm not sure if this is correct, and it is not clear to me under what circumstances the language statistics / syntax highlighting will actually be updated (eg does the file need to be modified by a new commit, or does a new version of linguist need to be pushed out to Github, etc).
Is this something worth pursuing? I personally find it helpful to have the correct syntax highlighting available when browsing code on Github, and it can also be difficult to use the search feature when the file you're looking for appears under the wrong language.
The text was updated successfully, but these errors were encountered: