SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict frankdux's Avatar
    Join Date
    Apr 2004
    Location
    Ashland, North Carolina
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dreamweaver MX 2004 Code Coloring

    I have a question regarding the code-coloring in the Dreamweaver MX code view. When I use a non-standard file extension (like .inc for an include) the code view loses the code coloring that a standard extension (like .php or .html) would have. Does anyone know if there is a way to tell Dreamweaver to treat a non-standard extension like it would a standard one? In other words it would code-color a .inc just like a .html.

  2. #2
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe you need to open / edit the following file:

    X:\Macromedia Dreamweaver MX 2004\Configuration\DocumentTypes\MMDocumentTypes.xml

    Code:
    ---[FIND]
    
    	<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml" macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml" file="Default.html" writebyteordermark="false">
    
    ---[REPLACE WITH]
    
    	<documenttype id="HTML" internaltype="HTML" winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml,inc" macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml,inc" file="Default.html" writebyteordermark="false">
    All I know is that it works.
    Jeroen Mulder

    w: www.jeroenmulder.com

  3. #3
    SitePoint Addict frankdux's Avatar
    Join Date
    Apr 2004
    Location
    Ashland, North Carolina
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks JMulder. That was exactly what I was trying to do.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •