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

前端 未结 2 2004
难免孤独
难免孤独 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!

提交回复
热议问题