mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Issue #2140: Note that only modelines control syntax highlighting.
This commit is contained in:
		@@ -26,7 +26,7 @@ Linguist supports a number of different custom overrides strategies for language
 | 
			
		||||
 | 
			
		||||
### Using gitattributes
 | 
			
		||||
 | 
			
		||||
Add a `.gitattributes` file to your project and use standard git-style path matchers for the files you want to override to set `linguist-documentation`, `linguist-language`, and `linguist-vendored`.
 | 
			
		||||
Add a `.gitattributes` file to your project and use standard git-style path matchers for the files you want to override to set `linguist-documentation`, `linguist-language`, and `linguist-vendored`. `.gitattributes` will be used to determine language stats, but will not be used to syntax highlight files. To manually set syntax highlighting, use [Vim or Emacs modelines](#using-emacs-and-vim-modelines).
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ cat .gitattributes
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user