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.

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): 

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

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

Save and restart Dreamweaver.