NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Hilighting


Joined: 25 Jul 2006
Posts: 70
Reply with quote
The code highlighting seems to have some problems with files that don't match expected extensions.

I have a number of command line scripts that have no .php extension which have no hilighting going on, also I name my smarty templates with .htm rather than .tpl and none of the smarty highlighting occurs in them.

Is there a way to fix this?

Thanks!
View user's profileFind all posts by cpriestSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
There is no magic, to know what type file belongs to, phped checks it extension and matches against list of extensions in the Tools->Settings->Associations.
If you need htm to be recognized as tpl, just remove htm from HTML and add it to the list for Smarty.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 Jul 2006
Posts: 70
Reply with quote
ddmitrie wrote:
There is no magic, to know what type file belongs to, phped checks it extension and matches against list of extensions in the Tools->Settings->Associations.
If you need htm to be recognized as tpl, just remove htm from HTML and add it to the list for Smarty.


Ahh that, worked, I had tried adding *.htm but hadn't removed it from HTML association.

Thanks!
View user's profileFind all posts by cpriestSend private message
Code Hilighting
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