Eclipse PDT doesn't highlight PHP syntax in .html files?

So, I do code maintenance, and our php codes are embedded in html files.

Eclipse does not highlight any of the php codes in the html file.

Does anyone have any ideas how to do this? I tried looking for it in the settings, and my google ninja skills don't let me.

Thanks in advance.

+3
source share
2 answers
  • windows> settings> general> content types
  • In the "text" section, find "PHP Content Type"
  • add "* .html"
  • . eclipse , .html, , . .html , , .

!

+11

. . . , .

  • Aptanna, .
  • , , pdt. ( Php) .
  • , , , .

.

0

Source: https://habr.com/ru/post/1777804/


All Articles