Skip to main content
creativedigitalnz
Known Participant
February 23, 2018
Answered

Tag completion not working for new file extension (.twig)

  • February 23, 2018
  • 2 replies
  • 2258 views

Hey folk,

I have recently added .twig to my list of file extensions Dreamweaver will open. Colour coding (kinda) and source format are working in code view, however tag completion is not. This is a bit of a pain as a lot of my .twig files are html heavy.

Anyone know a step I may have missed to activate tag completion? Tag completion is working for all other file extensions.

Thanks heaps!

Mike

This topic has been closed for replies.
Correct answer BenPleysier

I think that you will find that it is not only code colouring, the end result will be a total inclusion of TWIG files.

In the meantime, do the following:

  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": {
         "twig": "html"
    }
  4. Save brackets.json and relaunch Dw

2 replies

creativedigitalnz
Known Participant
February 23, 2018

Ok I've discovered a workaround. Changing TWIG to PHP in the bottom right menu allows me to use code completion. Would need to do everytime I open a template however.

Would still be interested in a fulltime fix.

BenPleysier
Community Expert
Community Expert
February 23, 2018

This feature request is already posted on dreamweaver user Voice.

Twig Code Coloring – Adobe Dreamweaver CC: Feature Ideas

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
creativedigitalnz
Known Participant
February 23, 2018

Code colouring... I'm after tag completion

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
February 23, 2018

I think that you will find that it is not only code colouring, the end result will be a total inclusion of TWIG files.

In the meantime, do the following:

  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": {
         "twig": "html"
    }
  4. Save brackets.json and relaunch Dw

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