Linguist syntax highlighting for Drupal file types
Drupal uses a few unusual file extensions that contain PHP - notably .module, .theme, and .install. GitHub use linguist for language detection. You can configure linguist using a .gitattributes file in your repo. Add a .gitattributes file with the following contents to your Drupal repo: # . . . l m i t i o n h n d s e g u t m u l a e i e l s l l t l i i l n c n i g o g n u n u g i f i u s i s i t g t s - u - t l r l - a a a l n t n a g i g n u o u g a n a u g g a e f e g = o = e P r P = H H P P s P H y P n t a x h i g h l i g h t i n g i n g i t h u b U I . Now your pull requests and source viewer in Github should have PHP syntax highlighting for these file extensions. ...