-
Notifications
You must be signed in to change notification settings - Fork 97
Description
Hi there,
I’m working to make NetLogo more visible on GitHub, and one way to do that is by ensuring NetLogo code is correctly recognized by the platform. I’ve been improving support for the .nls extension, but full coverage isn’t there yet (see this PR to learn more).
Many repositories in the NetLogo organization still contain code that isn’t properly detected.
A simple workaround is to add a .gitattributes file to the root of the repository. This tells GitHub which files are NetLogo code, ensuring the project is correctly identified and boosting NetLogo’s visibility in language statistics. Please include one here.
Here’s a minimal configuration:
*.nls linguist-detectable
*.nlogo linguist-detectable
*.nlogo3d linguist-detectable
*.nlogox linguist-detectable
*.nlogox3d linguist-detectable
*.nls linguist-language=NetLogo
*.nlogo linguist-language=NetLogo
*.nlogo3d linguist-language=NetLogo
*.nlogox linguist-language=NetLogo
*.nlogox3d linguist-language=NetLogo
A practical example can be seen here.
GitHub’s documentation on language detection and overrides is available here.
Thank you!