test/gs/plain.html

Wed, 10 Jul 2024 21:35:37 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Jul 2024 21:35:37 +0200
changeset 75
c72b250866ab
parent 66
1b12cf799fee
permissions
-rw-r--r--

add basic support for line continuations in C highlighter

things that still do not work:
- user includes
- splitting keywords

fixes #392

<!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