Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CC 2017 Change or add file extensions in Dreamweaver

Community Beginner ,
Nov 10, 2016 Nov 10, 2016

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!

2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Nov 06, 2017 Nov 06, 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/Conf

...
Translate
Community Beginner ,
Nov 11, 2016 Nov 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"

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2017 Feb 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 06, 2017 Nov 06, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines