Eclipse PDT isn't highlighting PHP syntax in .html files?

前端 未结 2 1979
难免孤独
难免孤独 2021-01-14 18:21

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 anyo

相关标签:
2条回答
  • 2021-01-14 18:50
    1. window > preferences > general > content types
    2. Under "text" find "PHP Content type"
    3. add "*.html"
    4. 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!

    0 讨论(0)
  • 2021-01-14 18:51

    Just figured this out. Man was this frustrating. mythicalprogrammer is right. Couple things to remember.

    1. Uninstall Aptanna plugin if you have it.
    2. Don't know if this will help, but you might need to install pdt. (Php Development Tools) Tools installed.
    3. 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.

    0 讨论(0)
提交回复
热议问题