No Syntax Highlighting on PHP


Hey guys,

Love the text editor overall, been using it for a few weeks now. Gotten around to developing some PHP today and the syntax isn’t being highlighted at all :frowning:

The file has a .php extension, there’s no HTML in the file and the indicator in the corner definitely says PHP. Is this a known issue? Are there fixes?


Sounds like you’re running into the same issue as mentioned here:

To be specific, Atom assumes that a PHP file is a PHP template file, so in order to see PHP syntax highlighting, the PHP has to be in a <?php ?> block.