DW, PHP & Design View -
07-30-2004
, 11:58 AM
Greetings,
I've been using DW version 3 for longer than I care to admit, but due to a
recent computer upgrade, I'm finally able to use DW MX.
In DW3, when working in design view, I was able to work on pages with embedded
PHP and see everything on the page, even the HTML parts contained within PHP
tags. Not the parsed code, of course, but for example, if there were 3
conditions in PHP and 3 related chunks of HTML, I'd see all 3 HTML chunks in
design view, all at once. This has been enormously helpful in designing and
editing the many complex, multi-page forms I've had to do recently.
Here's the thing: In DW MX, any HTML contained within or between PHP tags does
not show at all in design view; I can only see and edit it in code view. The
design view shows only the "containing" HTML tags, not all the HTML between PHP
tags. According to someone on a mailing list I belong to, this is probably
because prior to MX, Dreamweaver didn't recognize PHP code at all and would
just display everything, showing the page in design view as if the PHP tags
weren't there. Whereas MX recognizes it as server-side code, and ignores the
embedded HTML altogether.
What I'm wondering is if there's a way to change this setting, to tell DW to
ignore the PHP tags entirely in design view as it used to do in DW 3. I've
looked all through the preferences, help files, and on the Web to see if I can
figure out if this is a DW setting that can be changed, but I haven't been able
to find anything so far. Since my forms are fairly complex in layout, I would
much rather do the layout creation and editing in design view if at all
possible.
Any ideas would be enormously appreciated!
kp |