I keep forgetting how to do this so writing this down so I can refer to it later
I want .html to have the .php syntax highlighting as some we get .html to parse as .php. By default Eclipse doesn’t do this which is a right pain.
- Go to Window > Preferences
- In Preferences, go to General > Content Types
- Select PHP Source File and add *.html as a file association
- Click on File Associations link or General > Editors > File Associations
- Select *.html and add the PHP Editor as an associated editor - make it the default
- Next time you open a .html file with php tags, it’ll be highlighted as a php file! yay!
