NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
syntax highlighting


Joined: 19 Dec 2006
Posts: 94
Reply with quote
I use XTemplates in my frameowrk and i call the xtemplate file with a .xtpl extension. is there a way to get html syntax highlighting for .xtpl file types?
View user's profileFind all posts by basireSend private message


Joined: 21 Jan 2008
Posts: 19
Reply with quote
Yes. Go to: Tools -> Settings -> Associations and add xtpl extension to HTML or Smarty.
View user's profileFind all posts by wenihalSend private message


Joined: 19 Dec 2006
Posts: 94
Reply with quote
ok, now for the tough question, is there a way to create a new highlight config type? like i would want to copy the html exactly and then just add 1 rule so {whatever.text} would be colored different in a .xtpl file?
View user's profileFind all posts by basireSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
No, the only highlight-types that are available are the ones that are defined.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
If you add xtpl into the list for Smarty highlighter, {whatever.text} will be colored differently

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
syntax highlighting
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