Having spent a bit more time searching, I found the solution
apparently its a known problem, and you need to stop DW automatically opening php files in code view, using Edit - Preferences - File Types/Editors and removing .php from the list
sorry, I should have lloked further before i posted the question here