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

TWIGを使えるようにしたいです。

New Here ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

ccを使っています。

Extensions.txt

上記のファイルを下記のように編集しましたが、dwを起動してもテキストエディットで開いてしまいます。

どうすればよろしいでしょうか?

HTM,HTML,SHTM,SHTML,XHTML,STM,SSI,JS,JSON,APPCACHE,XML,YML,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,TWIG,TPL,VB,INC,SQL,MASTER,SVG:All Documents

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

SHTM,SHTML,STM,SSI,INC:Server-Side Includes

JS:JavaScript Documents

XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files

LBI:Library Files

DWT:Template Files

CSS,SCSS,LESS,SASS:Style Sheets

ASP,ASA:Active Server Pages

ASPX,ASCX,ASMX,CS,VB,CONFIG,MASTER:Active Server Plus Pages

CFM,CFML,CFC:ColdFusion Templates

APPCACHE:Manifest

HTACCESS:Directory Configuration File

TXT:Text Files

PHP,PHP3,PHP4,PHP5,TPL,PHP-DIST,PHTML:PHP Files

TLD:Tag Library Descriptor Files

SQL:SQL Files

VTM,VTML:VTML Files

SVG:Scalable Vector Graphics Files

JSON:Json Files

Views

1.4K

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
Advocate ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

外部サイトですが、以下の解説記事が参考になるのではないでしょうか。

DreamweaverでTwigファイルを編集可能にするための全手順

Dreamweaverの英語フォーラムでは、CakePHP (.CTP)ファイルについて同様の対処方がありましたので、こちらもご参考まで。

https://forums.adobe.com/thread/2118652

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
New Here ,
May 13, 2018 May 13, 2018

Copy link to clipboard

Copied

ありがとうございます。

外部サイトをみて対応して見ているのですがDw上のファイルをクリックしてファイルを開こうとするとテキストエディットが開いてしまうのですがそういうものなのでしょうか?

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
Advocate ,
May 13, 2018 May 13, 2018

Copy link to clipboard

Copied

LATEST

すみません、解説をよく読まずにご案内してしまいました。

外部サイトの解説はアプリケーション階層のファイルを書き換えているようですが、Dreamweaverが1度でも起動された環境の場合はユーザー階層のファイルを書き換えるようにして下さい。英語フォーラムのctpファイルを認識させる解説の方が適切です。

書き換えが問題なく行えますと、TWIGファイルも通常のPHPファイルと同じようにDreamweaverで開く事が出来るようになります。

なお、コードカラーリングの管理が2017から変わっている関係で、TWIGファイルでPHPのコードカラーリングを使えるようにする場合は、さらに同じConfigurationフォルダ内にあるbrackets.jsonファイルの最後に1行設定を追加する必要があります。最初(直前行の最後)にカンマを入れる事をお忘れなく。

Mac:  ~username/Library/Application Support/Adobe/Dreamweaver CC 2018/ja_JP/Configuration/Brackets/brackets.json

Win: ~username/AppData/Roaming/Adobe/Dreamweaver CC 2018/ja_JP/Configuration/Brackets/brackets.json

,"language.fileExtensions": { "twig": "php" }

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