Eclipse PDT isn't highlighting PHP syntax in .html files?
So, I'm doing code maintenance and our php codes are embedded in html files.
Eclipse isn't highlighting any of the php codes in the html file.
Does anyone have any ideas how to do this? I've tried looking for it in the preferences and my google ninja skills fail me.
Thank you in advance.
- window > preferences > general > content types
- Under "text" find "PHP Content type"
- add "*.html"
- Close the file and reopen it again. Restart eclipse won't work, since whatever .html file that have already been open when you restart will appear again. I had to close the .html file tab that I was viewing and reopen it.