Php syntax highlighting for *.html files


#1

How can I enable php syntax highlighting for *.html files.
Thank you in advance!


#2

You have to tell Atom to assign the PHP grammar to those files. Add this to your config.cson:

'*':
  core:
    customFileTypes:
      'text.html.php': [
        'php'
      ]