-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Forcing syntax highlighting for file X #3551
Comments
Do you have a link to the repository where you tried that? You might need to state the absolute path. |
The link is hidden behind smb.conf above :) |
@pchaigno any other way I can help resolve this issue? |
@pchaigno not trying to be pushy ... :) |
@ThomDietrich Sorry for the delay :S The file looks highlighted as expected (meaning, as an INI file). What were you expecting to be different? |
@pchaigno now it is indeed working, even without the gitattributes setting. I swear it didn't when I was creating the issue 😅 |
Everyone encountering similar issues: settings inside .gitattributes need some time to propagate through GitHub. Just give it a few hours. |
This is an example and can be adopted to a lot of cases.
I've got a samba configuration file (smb.conf) and it ends with the vim modeline
# vim: filetype=samba
, which is necessary as the filename can change and vim would identify it incorrectly.Is there a way to overwrite the Linguist syntax highlighting (on GitHub, see link above) with a specific language (in this case "ini") without compromising the vim modeline / function. The setting
smb.conf linguist-language=ini
in gitattributes doesn't seem to have any effect.The text was updated successfully, but these errors were encountered: