Page MenuHomePhabricator

Makefile syntax highlighting isn't auto-detected
Closed, DuplicatePublic

Description

Hi,

My company uses Phab and has it configured with Pygments for syntax highlighting. That works for most languages out of the box. However, it doesn't automatically syntax highlight Makefiles. When I use the "highlight as" dropdown and select Makefile, it syntax highlights it properly, indicating that Pygments is able to highlight Makefiles but that it isn't able to detect that the file is a makefile in the first place.

The file is called "Makefile", which is the convention for Makefiles, so I would expect it to be able to auto-detect the language.

Thanks, and sorry of this is the wrong place to report the issue!