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

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

Community Beginner ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

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

Views

1.7K

Translate

Translate

Report

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 Expert , Feb 22, 2018 Feb 22, 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
...

Votes

Translate

Translate
Community Expert ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

This feature request is already posted on dreamweaver user Voice.

Twig Code Coloring – Adobe Dreamweaver CC: Feature Ideas

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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 ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

Code colouring... I'm after tag completion

Votes

Translate

Translate

Report

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 Expert ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

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, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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 ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

LATEST

Oh man, I had ".twig": "php" - removed . and it works. Thank you

Votes

Translate

Translate

Report

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 ,
Feb 22, 2018 Feb 22, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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