Skip to main content
Participant
Jun 27, 2019 6:12 PM UTC
Answered

Color PHP code in TPL documents

Hello,

Recently I started working on Opencart 2.3.x tpl files.

Dreamweaver color the HTML codes but PHP codes are colored all in white.

How can I fix the coloring of PHP ? I have Dreamweaver cc 2019

Thank you

This topic is closed to new replies. Start a new post to keep the conversation going.
BenPleysier
BenPleysierCorrect answer
Community Expert
Jun 27, 2019 11:40 PM UTC

You will need to add the '.tpl' extension to Dreamweaver. See this discussion for more CC 2017 Change or add file extensions in Dreamweaver

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!

2 replies

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
Jun 27, 2019 11:40 PM UTC

You will need to add the '.tpl' extension to Dreamweaver. See this discussion for more CC 2017 Change or add file extensions in Dreamweaver

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
psytaniumAuthor
Participant
Jun 28, 2019 7:08 AM UTC

Thank you, the solution worked. I added the below code at the end:

,"language.fileExtensions": {
"tpl": "php"
  }

Translate