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

41
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <!DOCTYPE html>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <html>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 <head>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 <title>c2html</title>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 <style type="text/css">
66
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
6 div.c2html-code {
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
7 white-space: pre;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
8 font-family: monospace;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
9 }
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
10 a.c2html-lineno {
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
11 /* as long as user-select isn't widely spread, we throw the bomb */
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
12 -webkit-user-select: none;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
13 -moz-user-select: none;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
14 -ms-user-select: none;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
15 user-select: none;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
16 display: inline-block;
41
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 font-style: italic;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 text-decoration: none;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 color: grey;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 span.c2html-keyword {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 color: blue;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 span.c2html-macroconst {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 color: cornflowerblue;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 span.c2html-type {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 color: cornflowerblue;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 span.c2html-directive {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 color: green;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 span.c2html-string {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 color: darkorange;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 span.c2html-comment {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 color: grey;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 span.c2html-stdinclude {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 color: darkorange;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 span.c2html-userinclude {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 color: darkorange;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 a.c2html-userinclude {
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 color: darkorange;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 text-decoration: underline;
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 }
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 </style>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 </head>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 <body>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52
66
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
53 <div class="c2html-code">
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
54 <a class="c2html-lineno" name="l1" href="#l1">1 </a>&lt;/body&gt;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
55 <a class="c2html-lineno" name="l2" href="#l2">2 </a>&lt;/html&gt;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
56 <a class="c2html-lineno" name="l3" href="#l3">3 </a>&lt;!c
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
57 <a class="c2html-lineno" name="l4" href="#l4">4 </a>pblock_free(q);
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
58 <a class="c2html-lineno" name="l5" href="#l5">5 </a>!&gt;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
59 <a class="c2html-lineno" name="l6" href="#l6">6 </a>
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 41
diff changeset
60 </div>
41
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 </body>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 </html>
c06ab07fd29d increases input buffer + adds regression tests
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63

mercurial