MacOS – Set sublime text to read .asp files as .php files (with php syntax)

macosPHPsublimetext

I have a few .asp files that I want to edit with Sublime Text, however, I always have to change the syntax to PHP under View -> Syntax -> PHP. Is there anyway that I can make Sublime Text automatically read it as PHP?

Best Answer

Go to View → Syntax → Open all with current extension as... and select PHP. Check the image below:

enter image description here