Sun, 11 Jun 2023 15:21:44 +0200
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 | 6 | div.c2html-code { |
7 | white-space: pre; | |
8 | font-family: monospace; | |
9 | } | |
10 | a.c2html-lineno { | |
11 | /* as long as user-select isn't widely spread, we throw the bomb */ | |
12 | -webkit-user-select: none; | |
13 | -moz-user-select: none; | |
14 | -ms-user-select: none; | |
15 | user-select: none; | |
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 | 53 | <div class="c2html-code"> |
54 | <a class="c2html-lineno" name="l1" href="#l1">1 </a></body> | |
55 | <a class="c2html-lineno" name="l2" href="#l2">2 </a></html> | |
56 | <a class="c2html-lineno" name="l3" href="#l3">3 </a><!c | |
57 | <a class="c2html-lineno" name="l4" href="#l4">4 </a>pblock_free(q); | |
58 | <a class="c2html-lineno" name="l5" href="#l5">5 </a>!> | |
59 | <a class="c2html-lineno" name="l6" href="#l6">6 </a> | |
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 |