HighDots Forums  

Color Coding Help

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Color Coding Help in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cptmurdok
 
Posts: n/a

Default Color Coding Help - 06-17-2004 , 03:09 PM






In Dreamweaver MX 7.0.1 when working in code view on PHP pages, large blocks of
code turn bright red. I've noticed that the code that turns this color is the
same that is identified as "invalid HTML" when the option to "Highlight Invalid
HTML" is turned on, although when I'm working I have this option turned off.
Besides just bright red, sometimes the color changes in parts to a dark blue or
light grey or sometimes a line is one color on the top half and one on the
bottom if you scroll so only half is showing in the edit box and then scroll to
show it all again. I'm not sure what caused the problem to start, as it only
recently began happening, but it's driving me nuts. Any help would be greatly
appreciated.


Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Color Coding Help - 06-24-2004 , 09:45 PM






Please post a snippet of code that is causing this problem so we can
take a look.

Thanks,
Randy


Quote:
In Dreamweaver MX 7.0.1 when working in code view on PHP pages, large blocks of
code turn bright red...


Reply With Quote
  #3  
Old   
cptmurdok
 
Posts: n/a

Default Re: Color Coding Help - 06-25-2004 , 12:42 PM



Thank you for your response. I did finally figure out the problem. A closing
?> tag was missing in some php code that was "include()"ed at the beginning of
all of my pages. I guess that the different colors and the sporatic behavior
was just due to dreamweaver not refreshing the colors immediately. It was a
difficult problem to troubleshoot, though. Thanks again.


Reply With Quote
  #4  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: Color Coding Help - 06-25-2004 , 03:15 PM



That's exactly how code coloring is supposed to work to help you
troubleshoot cases like that.

If the coloring of your page is "messed up", then go backwards until you
find where the coloring starts being "messed up" and you will usually
(DW does not handle all possible syntax) find the place in your code
where there is syntax error.

It's not just to make your code look pretty!

Hope this helps,
Randy


Quote:
A closing
?> tag was missing in some php code that was "include()"ed at the beginning of
all of my pages. I guess that the different colors and the sporatic behavior
was just due to dreamweaver not refreshing the colors immediately. It was a
difficult problem to troubleshoot, though.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.