3 Replies Latest reply: Mar 2, 2013 4:27 AM by bluelaich RSS

    Syntax Highlighting - or Code Hints?

    bluelaich Community Member

      Hi everyone.......I just can't seem to find the answer to this one - I'm using CS4

       

      I changed a few minor things in my master template, and now in all dependent pages the changes have been highlighted in red and the items that were changed show in blue. Before I made the changes in the template everything in the dependent pages was greyed out and un-editable.

       

      Anyone have a clue what it means and if I have a problem that needs fixing? Also, how would I turn off this highlighting and return the text to grey? I've made many changes to templates before without seeing this behaviour.

       

      Thank Folks

      Brian.

      Dreamweaver CS4 - 1.png

        • 1. Re: Syntax Highlighting - or Code Hints?
          Nancy O. MVP

          Validate code in your Template & fix reported errors.  Obviously you deleted something vital.

           

          CSS - http://jigsaw.w3.org/css-validator/

          HTML - http://validator.w3.org/

          • 2. Re: Syntax Highlighting - or Code Hints?
            Jon Fritz II MVP

            I believe that highlighting is just letting you know you have some inline css in a non-editable region..

             

            I don't know if it's a "bug" or a "feature" but my copy of DWCS4 does the same thing..

            • 3. Re: Syntax Highlighting - or Code Hints?
              bluelaich Community Member

              Thanks Folks

              Everything validates fine Nancy, in both the template and child pages, so I don't think it is a serious error, just Dreamweaver trying to tell me something. I spent a whole afternoon trying to discover what that might be, but could find nothing.

               

              Seems you are right Jon that it is just telling me about inline css, because that appears to be the only thing that is affected. I never realized before that my original template must have been entirely free of inline css and that is why I did not see the phenomenon until recently. When I started out I thought you put all css stuff in the separate css documents, but as I learned to use inline css I of course started using it more and more and as it made its way into template edits the new red and blue highlighting started to appear in all the dependent pages. Of course my first thoughts were always going to be that it must be some kind of error message.

               

              On reflection it is probably more efficient to use style sheets for master templates and the code that will be common to hundreds of pages, so I did a little editing to relocate the inline css and the highlighting has gone. Perhaps that is what Dreamweaver was trying to tell me.

               

              Thanks again

              Brian.