Jun 30, 2010

Posted by in Adobe | 6 comments

Configuring Dreamweaver for .mod .ctp .thtml files

It used to irritate when our favorite CMS, Frameworks file extensions are not editable with our best editors with syntax highlighting option. Fortunately Dreamweaver has the option to configure these extensions such that they can be edited as php files.

Here are the steps.

1-> Locate your dreamweaver installation directory

ex – C:\Program Files\Adobe\Adobe Dreamweaver CS4

2-> Open the folder configuration in it.

3-> Open the file Extensions.txt from it

and append MODULE, THTML, CTP to it.

Now it may look like


Now Find

append MODULE, THTML, CTP to it

Now it may look like


Now save the Extensions.txt file and close it.

4-> Now locate DocumentTypes directory in configuration directory that you have opened.

Ex path – C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\DocumentTypes

5-> From the DocumentTypes folder find and open MMDocumentTypes.xml file

Now in MMDocumentTypes.xml find

<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,inc" macfileextension="php,php3,php4,php5,inc" file="Default.php" writebyteordermark="false">
see the attribute winfileextension and macfileextension
append ,module,ctp,thtml to it.
Now it may look like
<documenttype id="PHP_MySQL" servermodel="PHP MySQL" internaltype="Dynamic" winfileextension="php,php3,php4,php5,inc,module,ctp,thtml" macfileextension="php,php3,php4,php5,inc,module,ctp,thtml" file="Default.php" writebyteordermark="false">


Finally :: Now save the file and restart your dreamweaver with any of these thtml, ctp or module files and you can see the syntax highlighting there.

Thats it you are done.

Let me know if you have any issues in configuring this. I will gladly help you. Thanks

  1. Thanks! BTW Your path has a typo : “configurig”

  2. Worked great. No problems. Gonna be a huge time saver.

  3. i’d like to use the dreamweaver design mode with this type of files, would it be able?

  4. ratchasuresh says:

    its saying access denied when i am saving extension

  5. Worked like a champ!!! Thnx a mil

Leave a Reply