Red highlight next to code in Dreamweaver, WHY?

Discussion in 'HTML & Website Design' started by Lazarous, Jan 14, 2013.

  1. #1
    I have included a screenshot. Why is the code highlighted in red? Does it actually affect the website?
     

    Attached Files:

    Lazarous, Jan 14, 2013 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    That's called syntax highlighting - it lets you see what's text, what's script, etc. It doesn't show on the site.
     
    Rukbat, Jan 17, 2013 IP
  3. premiumwordpressthemes

    premiumwordpressthemes Active Member

    Messages:
    112
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    96
    #3
    Hi Lazarous,

    I'm really interested in your question. I've used to get the same issue with my source code. The pages with highlighted code like that usually work fine on browsers. I ensure that this error causes by Dreamwaver so you don't worry about it. I also tried to duplicate the error by using your code, and here is what I get:

    I didn't receive any error as your attached pic till I added this line below the inline style <style type="text/css">.....</style>:
    Then I tried to replace this line code by:

    The highlight disappeared.

    So I think the problem is php code inside the <script></script> block. Try looking around to see if any php code similar to my example in your file. Good luck! :)
     
    premiumwordpressthemes, Jan 17, 2013 IP