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 go开发者_JS百科ogle 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.
Thanks again!
Just figured this out. Man was this frustrating. mythicalprogrammer is right. Couple things to remember.
- Uninstall Aptanna plugin if you have it.
- Don't know if this will help, but you might need to install pdt. (Php Development Tools) Tools installed.
- Make sure to close all your windows in eclipse and restart the program, and after following mythicalprogrammers advice you should be good to go.
Good luck.
精彩评论