Dreamweaver dose not activate code highlighting/hinting/error-checking unless you are using a file type that it knows, (.php .htm .html .css .js .aspx etc) but I am working on a project written in ASP.NET and I have an issue, Dreamweaver doesn't recognize all the ASP.NET file types. .aspx works, and .vb works but .master files show as plain text, no hinting/highlighting no design view. I can edit as .aspx and then save-as constantly but it is a big hassle. Dose anyone know a way to make Dreamweaver think it is editing a .aspx (for proper hinting) but actually be a .master?
For other people who may well be having the same problem following the instructions on this Adobe page, as @rtpHarry rightly points out there is another version of the document that needs updating.
I think this will work for CS5, but the instructions below is for Dreamweaver Creative Cloud.
C:\Users[user]\AppData\Roaming\Adobe\Dreamweaver CC\en_US\Configuration\DocumentTypes
Open MMDocumentTypes.xml in Notepad. Note that this Roaming Data is a hidden folder so you may need to change your Windows settings
Change the line for the type of file extension you want to edit. For example, adding a .CSHTML extension to enable regular HTML Code Coloring goes from this:
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi" file="Default.html" writebyteordermark="false" mimetype="text/html">
To this
<documenttype id="HTML" internaltype="HTML" winfileextension="cshtml,html,htm,shtml,shtm,stm,tpl,lasso,xhtml" macfileextension="cshtml,html,htm,shtml,shtm,tpl,lasso,xhtml,ssi" file="Default.html" writebyteordermark="false" mimetype="text/html">