Sun, 11 Jun 2023 15:21:44 +0200
fix incorrect highlighting when input file starts with line break
3 | 1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head> | |
4 | <title>c2html</title> | |
5 | <style type="text/css"> | |
66 | 6 | div.c2html-code { |
7 | white-space: pre; | |
8 | font-family: monospace; | |
9 | } | |
60
9f25df78925e
removes span around line number
Mike Becker <universe@uap-core.de>
parents:
59
diff
changeset
|
10 | a.c2html-lineno { |
59
643a3ccecd61
test header file now contains user-select:none property
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
11 | /* as long as user-select isn't widely spread, we throw the bomb */ |
643a3ccecd61
test header file now contains user-select:none property
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
12 | -webkit-user-select: none; |
643a3ccecd61
test header file now contains user-select:none property
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
13 | -moz-user-select: none; |
643a3ccecd61
test header file now contains user-select:none property
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
14 | -ms-user-select: none; |
643a3ccecd61
test header file now contains user-select:none property
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
15 | user-select: none; |
60
9f25df78925e
removes span around line number
Mike Becker <universe@uap-core.de>
parents:
59
diff
changeset
|
16 | display: inline-block; |
3 | 17 | font-style: italic; |
27
53fd8595378c
added links for line numbers
Mike Becker <universe@uap-core.de>
parents:
10
diff
changeset
|
18 | text-decoration: none; |
3 | 19 | color: grey; |
20 | } | |
5
412f1896874b
support for keywords and types
Mike Becker <universe@uap-core.de>
parents:
3
diff
changeset
|
21 | span.c2html-keyword { |
412f1896874b
support for keywords and types
Mike Becker <universe@uap-core.de>
parents:
3
diff
changeset
|
22 | color: blue; |
412f1896874b
support for keywords and types
Mike Becker <universe@uap-core.de>
parents:
3
diff
changeset
|
23 | } |
10
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
24 | span.c2html-macroconst { |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
25 | color: cornflowerblue; |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
26 | } |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
27 | span.c2html-type { |
5
412f1896874b
support for keywords and types
Mike Becker <universe@uap-core.de>
parents:
3
diff
changeset
|
28 | color: cornflowerblue; |
412f1896874b
support for keywords and types
Mike Becker <universe@uap-core.de>
parents:
3
diff
changeset
|
29 | } |
7 | 30 | span.c2html-directive { |
31 | color: green; | |
32 | } | |
33 | span.c2html-string { | |
10
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
34 | color: darkorange; |
7 | 35 | } |
8 | 36 | span.c2html-comment { |
37 | color: grey; | |
38 | } | |
10
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
39 | span.c2html-stdinclude { |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
40 | color: darkorange; |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
41 | } |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
42 | span.c2html-userinclude { |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
43 | color: darkorange; |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
44 | } |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
45 | a.c2html-userinclude { |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
46 | color: darkorange; |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
47 | text-decoration: underline; |
925172e535a9
includes (with links in user includes)
Mike Becker <universe@uap-core.de>
parents:
9
diff
changeset
|
48 | } |
3 | 49 | </style> |
50 | </head> | |
51 | <body> | |
52 |