Skip to main content
Participant
March 28, 2017
Answered

Make the .tpl extension same as PHP in the code view for Dreamweaver CC 2017 in Mac OS Sierra

  • March 28, 2017
  • 2 replies
  • 1836 views

Hi I edited both MMDocumentTypes.xml in the application and user folder.

I already remove the .tpl in the html section and move it down to the php section.

Restart the Dreamweaver but it still show tpl in html highlighting.

Please help!

    This topic has been closed for replies.
    Correct answer Preran

    Hi ,

    Do you have any solution yet?


    Hi allangan,

    Apologize for the delayed response. The team did get back to me in time but I forgot posting that here.

    According to the team, in the way that DW works currently, you cannot customize code coloring for a specific file extension.

    In Brackets, the themes are defined by mode(Ex: HTML/PHP/CSS/etc). So all file extensions which come under this mode, will be displayed with the colors defined for that mode.

    I suggest placing a feature request with the team using Adobe Dreamweaver CC: Feature Ideas If your feature gets enough traction by way of votes, it will help the team prioritize it.

    Thanks,

    Preran

    2 replies

    Participant
    November 6, 2017

    Found this little tidbit on UserVoice from an Adobe engineer:

    If you are trying to assign a code coloring to a document type so that user does not have to change the document type in status bar every time a file of that type is opened, then you can do that in Dw. I have showcased an example below

    Example 1: To assign VBScript code coloring for all .asp files


    1. Launch Dw

    2. Open brackets.json from below path:

    Mac: located in ~username/Library/Application Support/Adobe/Dreamweaver CC 2017/en_us/Configuration/Brackets
    Win: located in ~username/AppData/Roaming/Adobe/Dreamweaver CC 2017/en_us/Configuration/Brackets

    3. Add below code at the end:

    ,"language.fileExtensions": {
    "asp": "vbscript"
      }

    4. Save brackets.json and relaunch Dw


    Result: All .asp files will be opened with VBScript code coloring

    Preran
    Legend
    March 30, 2017

    Not really the answer to your question, but sharing this document just in case it helps

    Add or edit recognized file extensions in Dreamweaver

    Thanks,

    Preran

    Participant
    March 31, 2017

    Hi Preran,

    Really appreciate your help.

    But I followed the instruction and add the .tpl to the php extension (from previously html). in

    /Users/user/Library/Application Support/Adobe/Dreamweaver CC 2017/en_US/Configuration/MMDocumentTypes.xml

    But still no luck. is there maybe other place where I should edit this files?

    Below is my code in:

    <documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,tpl,phtml" macfileextension="php,php3,php4,php5,tpl,phtml" file="Default.php" writebyteordermark="false" mimetype="text/html">

      <TITLE>

      <MMString:loadString id="mmdocumenttypes_14" />

      </TITLE>

      <description>

      <MMString:loadString id="mmdocumenttypes_15" />

      </description>

      <dtdcontext>html</dtdcontext>

      </documenttype>

    Preran
    Legend
    March 31, 2017

    Am checking with my colleagues. Will get back as soon as I have something useful to add.