NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] php code syntax color in html files?


Joined: 26 Nov 2007
Posts: 7
Reply with quote
Hi , I have a problem , When there is php code in a .html file , PhpEd wont make the syntax color for the php code , it will just stays gray all the php code, I need the colors for the php code there in the html files, how can I fix this?

VictorCl.
View user's profileFind all posts by victorclSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
there is nothing to fix. If the file is a true html, it can never contain stuff like php Smile, see corresponding HTML RFCs.
What you referred to is php file Smile, not html, although it has .html file extension. To have it highlighted as php file, you need to update file associations: remove .html from the HTML list and add it to PHP4 or PHP5 depending on your needs.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 26 Nov 2007
Posts: 7
Reply with quote
ah yeah now is highlighting php fine ^^ in .html files, yeah this proyect I am working on has lots of .html files with php code in it , so I needed the syntax coloring for php, normally most editors I have used they already highlight all the codes.

Thanks for the answer.
View user's profileFind all posts by victorclSend private message
[resolved] php code syntax color in html files?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic