test/gs/plain.html

Sun, 11 Jun 2023 15:21:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 11 Jun 2023 15:21:44 +0200
changeset 71
d5af9261231d
parent 66
1b12cf799fee
permissions
-rw-r--r--

fix incorrect highlighting when input file starts with line break

<!DOCTYPE html>
<html>
  <head>
    <title>c2html</title>
    <style type="text/css">
      div.c2html-code {
        white-space: pre;
        font-family: monospace;
      }
      a.c2html-lineno {
        /* as long as user-select isn't widely spread, we throw the bomb */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        display: inline-block;
        font-style: italic;
        text-decoration: none;
        color: grey;
      }
      span.c2html-keyword {
        color: blue;
      }
      span.c2html-macroconst {
        color: cornflowerblue;
      }
      span.c2html-type {
        color: cornflowerblue;
      }
      span.c2html-directive {
        color: green;
      }
      span.c2html-string {
        color: darkorange;
      }
      span.c2html-comment {
        color: grey;
      }
      span.c2html-stdinclude {
        color: darkorange;
      }
      span.c2html-userinclude {
        color: darkorange;
      }
      a.c2html-userinclude {
        color: darkorange;
        text-decoration: underline;
      }
    </style>
  </head>
  <body>

<div class="c2html-code">
<a class="c2html-lineno" name="l1" href="#l1">1 </a>&lt;/body&gt;
<a class="c2html-lineno" name="l2" href="#l2">2 </a>&lt;/html&gt;
<a class="c2html-lineno" name="l3" href="#l3">3 </a>&lt;!c
<a class="c2html-lineno" name="l4" href="#l4">4 </a>pblock_free(q);
<a class="c2html-lineno" name="l5" href="#l5">5 </a>!&gt;
<a class="c2html-lineno" name="l6" href="#l6">6 </a>
</div>
  </body>
</html>

mercurial