Adobe Dreamweaver: code highlighting in unrecognized file types (for example, ".master")

Dose Dreamweaver does not activate code highlighting / tooltip / error checking unless you use the type of file it knows (.php.htm.html.css.js.aspx etc.), but I'm working on a project written in ASP.NET, and I have a problem, Dreamweaver does not recognize all types of ASP.NET..aspx works files, and .vb works, but .master files appear as plain text without hinting / highlighting the design. I can edit as .aspx and then save as permanently, but this is a big problem. Dose anyone knows a way to make Dreamweaver think that it is editing .aspx (for the right hint), but is it really .master?

+3
source share
2 answers

For other people who may have the same problem, following the instructions on this Adobe page like @rtpHarry rightly indicates that there is another version of the document that needs updating.

I think this will work for CS5, but the instructions below are for Dreamweaver Creative Cloud.

  • Close Dreamweaver, go to

C: \ Users [user] \ AppData \ Roaming \ Adobe \ Dreamweaver CC \ en_US \ Configuration \ DocumentTypes

  • Open "MMDocumentTypes.xml" in Notepad. Please note that Roaming data is a hidden folder, so you may need to change your Windows settings.

  • , . , .CSHTML HTML- :

<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">

<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">
  • Dreamweaver !
+3

Mac? , () , .APP PLIST... - :

<dict>
   <key>com.adobe.dreamweaver</key>
   <string>ASPX</string>
   <key>public.filename-extension</key>
   <array>
      <string>aspx</string>
      <string>QQZYX</string> <!-- add this line -->
   </array>
   <key>public.mime-type</key>
   <string>text/html</string>
</dict>

Windows, , , Dreamweaver "", "", info.plist (Smultron, TextMate) - ASPX.

.aspx .qqzyx ASPX. Dreamweaver, , XML:)

. , Extensions.txt. : http://kb2.adobe.com/cps/164/tn_16410.html

+2

All Articles