Loading ...
Sorry, an error occurred while loading the content.

CSS syntax highlighting

Expand Messages
  • Mike Breiding - Morgantown WV
    I am using Notetab Pro 4.95 In some pages the CSS is highlighted and in some it is not. Below are two examples. Can anyone tell me why this is happening?
    Message 1 of 2 , Sep 30, 2004
    • 0 Attachment
      I am using Notetab Pro 4.95
      In some pages the CSS is highlighted and in some it is not.
      Below are two examples.
      Can anyone tell me why this is happening?
      Thanks,
      -Mike
      --------------------

      CSS is Highlighted blue

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title> Art History    GREEK ART (600B.C. - 100
      B.C.)  </title>
      <style type="text/css">
      /* <![CDATA[ */

      /*top right bottom left */
      html
      {
      background: #ffffff;
      margin: 2em;
      }
      body
      {
      border: solid 1px #a6c1ce;
      border-right-color: #80a2b3;

      }
      form
      {padding: 0em 0em 0em 2em}

      /* ]]> */
      </style>
      ================
      No Highlighting ofCSS

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
      Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
      <html lang="en">
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <meta name="author" content="Mike Breiding">
      <meta name="description" content=" ">
      <meta name="keywords" content=" ">
      <link rel="stylesheet" type="text/css" media="screen" href="photos.css">
      <title> </title>
      <style type="text/css">

      body
      {padding: 4px;margin: 10px 8% 40px 8%;}

      h1 { font-family: Times, serif; /*added generic font fallback*/
      font-size: 1.5em; /*changed to screen-appropriate unit*/
      text-align: center;
      font-weight: bold;
      padding: 10px 0px 10px 0px;
      background-color: #80a2b3;
      margin: 0 auto; /*note auto margin for standards-compliant centering*/
      /*border: 1px solid #666;*/ /*redundant and removed*/ }
      </style>
    • loro
      ... Because in the XHTML example it sees the whole block in the CDATA section as one tag, . As it would . Psst! You
      Message 2 of 2 , Sep 30, 2004
      • 0 Attachment
        Mike Breiding - Morgantown WV wrote:
        >I am using Notetab Pro 4.95
        >In some pages the CSS is highlighted and in some it is not.
        >Below are two examples.
        >Can anyone tell me why this is happening?

        Because in the XHTML example it sees the whole block in the CDATA section
        as one tag, <![CDATA[ ... ]]> . As it would <anything between angles> .

        Psst! You shouldn't have those CSS comments around the CDATA stuff.

        Lotta
      Your message has been successfully submitted and would be delivered to recipients shortly.