Skip to main content
Participant
November 11, 2016
Answered

CC 2017 Change or add file extensions in Dreamweaver

  • November 11, 2016
  • 2 replies
  • 2264 views

Tried following these instructions to add HTML color code to INC file extensions.  I can't get it to work.

Add or edit recognized file extensions in Dreamweaver

Searched for Extensions.txt and found two files.  INC extension has been added...

HTM,HTML,SHTM,SHTML,XHTML,STM,SSI,JS,JSON,APPCACHE,XML,XSL,XSD,DTD,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,SCSS,LESS,SASS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-DIST,PHTML,TPL,VB,INC,SQL,MASTER,SVG:All Documents

HTM,HTML,HTA,HTC,XHTML,INC:HTML Documents

Searched for MMDocumentTypes.xml and found two files.  INC extension has been added...

<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,inc" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,inc" file="Default.html" writebyteordermark="false" mimetype="text/html">

Are there additional files that need to be updated?

Following these instructions for previous CC versions worked fine but since update, I can't get it to work.

Thanks!

    This topic has been closed for replies.
    Correct answer BrackenIT

    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

    2 replies

    BrackenITCorrect answer
    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

    Participant
    November 11, 2016

    The information linked in the thread marked 'Correct Answer' worked for me...

    Find and edit brackets.json

    <USER>/AppData/Roaming/Adobe/Dreamweaver CC 2017/en_US/Configuration/Brackets

    Add this to brackets.json

    "language.fileExtensions": {

         "inc": "html"

    }

    Be sure to add a comma to the end of the line above.

    In my case,

    "showSyntaxColoring": true,

    "language.fileExtensions": {

         "inc": "html"

    }

    webtrade_design
    Participant
    February 10, 2017

    This is really annoying, I'm trying to add a .cshtml extension to the file open menu and I can't do it.  I've added the extension to the Extensions.txt file and it won't work.  Anyone manage to get this working?