How to make Dreamweaver recognise .thtml files as .php files

The trouble with Search Engines isn’t that the things you want to find aren’t there (they usually, but not always are) – the problem is wracking your brain to find the right bloody words to search for.

Still got there in the end – this is how you make Dreamweaver recognise CakePHP .thtml files as PHP – and give you the pretty colours you need and love. 

http://friendsofed.infopop.net/2/OpenTopic?a=tpc&s=989094322&f=5283032876&m=3441048931

Locate the following file: C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\MMDocumentTypes.xml.

Open the file and locate the following line (around line 75): 


winfileextension="php,php3,php4,php5"
  macfileextension="php,php3,php4,php5" file="Default.php" writebyteordermark="false">

Change it to this:
  winfileextension="php,php3,php4,php5,thtml"
  macfileextension="php,php3,php4,php5,thtml" file="Default.php" writebyteordermark="false">


Save and restart Dreamweaver.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>