|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I just started using Dreamweaver MX and I noticed that when I open a file with the .php extension Dreamweaver MX forces the window into Code View. I would like some of my PHP pages to load in Design mode. Especially when I'm working with tables. Does anyone know how to force Dreamweaver MX to use Design Modem on files other then .html,.htm?
Thanks Michael |
|
#2
|
|||
|
|||
|
Take a look at the first object in this XML file:
<DRIVE>:/Macromedia/Dreamweaver MX/Configuration/DocumentTypes/MMDocumentTypes.xml (open it with a text editor). And add the extension (i.e. .php) to the end of where all the HTML extensions are. Hope this helps. |
|
#3
|
|||
|
|||
|
Does this work in DW MX2004?
Hi,
Has anyone got this to work with DW MX 2004 as I cannot seem to make it work whatever I do. When I tried to add SSI to the HTML section of the MMDocumentTypes.xml file, when I went to open DW I got the following error :- The document type "HTML" will not be added because it uses a file extension that is already associated with a prior Document Type. I get this error for a range of file types e.g HTML, Actionscript communications etc. DW still opens, and I can still edit files etc, but I still cannot see and SSI file in Design veiw or have it colour coded. Regs....David. |
|
#4
|
|||
|
|||
|
It could be because the extension is registered to another scheam... Do a search in the MMDocumentTypes.xml and delete all existing references to that extension, apart from the one you wish to use it with.
Last edited by r3n : January 3rd, 2004 at 10:08 AM. |
|
#5
|
|||
|
|||
|
OK, a complete uninstall and reinstall has now given me some colour coding in XML and XSLT files, but I'm loathed to mess about with the MMDocumentTypes.xml file again for fear of causing more problems!! SSI does not appear anywhere else in that file.
I say "some colour coding" above as for example this is what happens in most of my XSL files :- <?xml version="1.0 "?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> So the first line is colour coded, but not the first two XSL statements. Any ideas now? Regs....David. |
|
#6
|
|||
|
|||
|
Not too sure, how sure are you that DW fully supports the language?
|
|
#7
|
|||
|
|||
|
r3n, I forgot to thank you for posting the solution to my problem many months ago. Thanks again. I appreciate it.
Michael |
|
#8
|
|||
|
|||
|
Thanks a lot michaelrosejr, not often you find such good regard... good to see I ain't waisting my breath lol
![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Forcing Design Mode/View |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|