Highlighted

Color PHP code in TPL documents

New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

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

Views

172

Likes

Translate

Translate

Report

Report
This conversation has been locked.

Color PHP code in TPL documents

New Here ,
Jun 27, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

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

Views

173

Likes

Translate

Translate

Report

Report
Jun 27, 2019 0
Adobe Community Professional ,
Jun 27, 2019

Copy link to clipboard

Copied

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


Ben

Likes

Translate

Translate

Report

Report
Jun 27, 2019 1
New Here ,
Jun 28, 2019

Copy link to clipboard

Copied

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

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

Likes

Translate

Translate

Report

Report
Jun 28, 2019 1