test/jheader.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

17
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <!DOCTYPE html>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <html>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 <head>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 <title>c2html</title>
7ea86024aef0 implemented java highlighting
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: 60
diff changeset
6 div.c2html-code {
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 60
diff changeset
7 white-space: pre;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 60
diff changeset
8 font-family: monospace;
1b12cf799fee upgrade to ucx 3.0
Mike Becker <universe@uap-core.de>
parents: 60
diff changeset
9 }
60
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
10 a.c2html-lineno {
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
11 /* as long as user-select isn't widely spread, we throw the bomb */
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
12 -webkit-user-select: none;
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
13 -moz-user-select: none;
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
14 -ms-user-select: none;
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
15 user-select: none;
9f25df78925e removes span around line number
Mike Becker <universe@uap-core.de>
parents: 27
diff changeset
16 display: inline-block;
17
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 font-style: italic;
27
53fd8595378c added links for line numbers
Mike Becker <universe@uap-core.de>
parents: 17
diff changeset
18 text-decoration: none;
17
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 color: grey;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 span.c2html-keyword {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 color: blue;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 span.c2html-macroconst {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 color: cornflowerblue;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 span.c2html-type {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 color: teal;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 span.c2html-directive {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 color: silver;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 span.c2html-string {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 color: darkorange;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 span.c2html-comment {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 color: grey;
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 span.c2html-stdinclude, span.c2html-userinclude, a.c2html-userinclude {
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 }
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 </style>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 </head>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 <body>
7ea86024aef0 implemented java highlighting
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44

mercurial