Commit a349cce983dfcaeaec798287bc8ba2a4234e3bca

Authored by William Daniau
1 parent 54c20cb285
Exists in master

+ Ajouté les icones de navigation

+ déplacé des fichiers du common qui n'ont pas à être exportés

Showing 13 changed files with 60 additions and 16 deletions Inline Diff

templates/html/Default.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 8 8 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 10 10 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 12 12 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 14 14 href="[% resource('common/zim-hljs.css') %]" >
15 15
<style type='text/css'> 16 16 <style type='text/css'>
* { font-family: sans-serif } 17 17 * { font-family: sans-serif }
18 18
a:hover { text-decoration: underline; } 19 19 a:hover { text-decoration: underline; }
20 20
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 21 21 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 22 22 img {
display: block; 23 23 display: block;
margin-left: auto; 24 24 margin-left: auto;
margin-right: auto; 25 25 margin-right: auto;
} 26 26 }
27 27
28 28
</style> 29 29 </style>
30 30
<!-- Themes clair : 31 31 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 32 32 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 33 33 qtcreator_light.css
Themes sombres : 34 34 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 35 35 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 36 36 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 37 37 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 38 38 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 39 39 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 40 40 href="[% resource('common/hljs/styles/sunburst.css') %]" >
41 41
<!-- hljs --> 42 42 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 43 43 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
44 44
</head> 45 45 </head>
<body> 46 46 <body>
47 47
[% options.empty_lines = "default" %] 48 48 [% options.empty_lines = "default" %]
49 49
<!-- Header --> 50 50 <!-- Header -->
<div class='header'> 51 51 <div class='header'>
52 <table class='navigation'>
53 <tr class='navigation'>
54 <td class='navigation'>
[% IF navigation.prev %] 52 55 [% IF navigation.prev %]
[ <a href='[% uri(navigation.prev) %]'>[% gettext("Prev") %]</a> ] 53 56 <a href='[% uri(navigation.prev) %]'>
57 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
58 </a>
[% ELSE %] 54 59 [% ELSE %]
[ <span class='insen'>[% gettext("Prev") %]</span> ] 55 60 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
[% END %] 56 61 [% END %]
57 62 </td>
63 <td class='navigation'>
[% IF links.get("index") %] 58 64 [% IF links.get("index") %]
[ <a href='[% uri(links.get("index")) %]'>[% gettext("Index") %]</a> ] 59 65 <a href='[% uri(links.get("index")) %]'>
66 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
67 </a>
[% ELSE %] 60 68 [% ELSE %]
[ <span class='insen'>[% gettext("Index") %]</span> ] 61 69 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
[% END %] 62 70 [% END %]
63 71 </td>
72 <td class='navigation'>
[% IF navigation.next %] 64 73 [% IF navigation.next %]
[ <a href='[% uri(navigation.next) %]'>[% gettext("Next") %]</a> ] 65 74 <a href='[% uri(navigation.next) %]'>
75 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
76 </a>
[% ELSE %] 66 77 [% ELSE %]
[ <span class='insen'>[% gettext("Next") %]</span> ] 67 78 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
[% END %] 68 79 [% END %]
80 </td>
81 </tr>
82 </table>
</div> 69 83 </div>
70 84
<hr /> 71 85 <hr />
72 86
<!-- Wiki content --> 73 87 <!-- Wiki content -->
74 88
<div class='pages'> 75 89 <div class='pages'>
<!--[% FOR page IN pages %]--> 76 90 <!--[% FOR page IN pages %]-->
<div class='heading'> 77 91 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 78 92 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 79 93 </div>
80 94
<div class='content'> 81 95 <div class='content'>
[% page.body %] 82 96 [% page.body %]
</div> 83 97 </div>
84 98
<br /> 85 99 <br />
86 100
<div class='page-footer'> 87 101 <div class='page-footer'>
<!--[% FOR link IN page.backlinks %]--> 88 102 <!--[% FOR link IN page.backlinks %]-->
[% IF loop.first %]<b>[% gettext("Backlinks:") %]</b>[% END %] 89 103 [% IF loop.first %]<b>[% gettext("Backlinks:") %]</b>[% END %]
90 104
<a href='[% uri(link) %]'>[% link.name %]</a> 91 105 <a href='[% uri(link) %]'>[% link.name %]</a>
92 106
[% IF loop.last %]<br /><br />[% END %] 93 107 [% IF loop.last %]<br /><br />[% END %]
<!--[% END %]--> 94 108 <!--[% END %]-->
95 109
<!--[% FOR file IN page.attachments %]--> 96 110 <!--[% FOR file IN page.attachments %]-->
[% IF loop.first %] 97 111 [% IF loop.first %]
<b>[% gettext("Attachments:") %]</b> 98 112 <b>[% gettext("Attachments:") %]</b>
<table> 99 113 <table>
templates/html/Default_with_index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 2 2 <html>
<head> 3 3 <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>[% title %]</title> 5 5 <title>[% title %]</title>
<meta name='Generator' content='[% generator.name %]'> 6 6 <meta name='Generator' content='[% generator.name %]'>
<link rel="stylesheet" 7 7 <link rel="stylesheet"
href="[% resource('common/zim-style.css') %]" > 8 8 href="[% resource('common/zim-style.css') %]" >
<link rel="stylesheet" 9 9 <link rel="stylesheet"
href="[% resource('common/zim-table-style.css') %]" > 10 10 href="[% resource('common/zim-table-style.css') %]" >
<link rel="stylesheet" 11 11 <link rel="stylesheet"
href="[% resource('common/zim-special.css') %]" > 12 12 href="[% resource('common/zim-special.css') %]" >
<link rel="stylesheet" 13 13 <link rel="stylesheet"
href="[% resource('common/zim-hljs.css') %]" > 14 14 href="[% resource('common/zim-hljs.css') %]" >
15 15
<style type='text/css'> 16 16 <style type='text/css'>
* { font-family: sans-serif } 17 17 * { font-family: sans-serif }
18 18
a:hover { text-decoration: underline; } 19 19 a:hover { text-decoration: underline; }
20 20
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ 21 21 /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
img { 22 22 img {
display: block; 23 23 display: block;
margin-left: auto; 24 24 margin-left: auto;
margin-right: auto; 25 25 margin-right: auto;
} 26 26 }
27 27
/* Specifique au with index */ 28 28 /* Specifique au with index */
span.insen { color: grey } 29 29 span.insen { color: grey }
30 30
.pages { 31 31 .pages {
max-width: 1000px; 32 32 max-width: 1000px;
padding-left: 320px; 33 33 padding-left: 320px;
} 34 34 }
.menu{ 35 35 .menu{
float:left; width: 300px; 36 36 float:left; width: 300px;
} 37 37 }
hr{clear:both;} 38 38 hr{clear:both;}
39 39
</style> 40 40 </style>
41 41
<!-- Themes clair : 42 42 <!-- Themes clair :
atom-one-light.css, vs.css googlecode.css github.css 43 43 atom-one-light.css, vs.css googlecode.css github.css
qtcreator_light.css 44 44 qtcreator_light.css
Themes sombres : 45 45 Themes sombres :
agate.css vs2015.css atom-one-dark.css hybrid.css 46 46 agate.css vs2015.css atom-one-dark.css hybrid.css
ir-black.css sunburst.css tomorrow-night-bright.css 47 47 ir-black.css sunburst.css tomorrow-night-bright.css
qtcreator_dark.css 48 48 qtcreator_dark.css
Demo live : https://highlightjs.org/static/demo/ --> 49 49 Demo live : https://highlightjs.org/static/demo/ -->
<link rel="stylesheet" 50 50 <link rel="stylesheet"
href="[% resource('common/hljs/styles/sunburst.css') %]" > 51 51 href="[% resource('common/hljs/styles/sunburst.css') %]" >
52 52
<!-- hljs --> 53 53 <!-- hljs -->
<script src="[% resource('common/hljs/highlight.pack.js') %]"></script> 54 54 <script src="[% resource('common/hljs/highlight.pack.js') %]"></script>
55 55
</head> 56 56 </head>
<body> 57 57 <body>
58 58
<!-- Header --> 59 59 <!-- Header -->
<div class='header'> 60 60 <div class='header'>
61 <table class='navigation'>
62 <tr class='navigation'>
63 <td class='navigation'>
[% IF navigation.prev %] 61 64 [% IF navigation.prev %]
[ <a href='[% uri(navigation.prev) %]'>[% gettext("Prev") %]</a> ] 62 65 <a href='[% uri(navigation.prev) %]'>
66 <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
67 </a>
[% ELSE %] 63 68 [% ELSE %]
[ <span class='insen'>[% gettext("Prev") %]</span> ] 64 69 <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]">
[% END %] 65 70 [% END %]
66 71 </td>
72 <td class='navigation'>
[% IF links.get("index") %] 67 73 [% IF links.get("index") %]
[ <a href='[% uri(links.get("index")) %]'>[% gettext("Index") %]</a> ] 68 74 <a href='[% uri(links.get("index")) %]'>
75 <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
76 </a>
[% ELSE %] 69 77 [% ELSE %]
[ <span class='insen'>[% gettext("Index") %]</span> ] 70 78 <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]">
[% END %] 71 79 [% END %]
72 80 </td>
81 <td class='navigation'>
[% IF navigation.next %] 73 82 [% IF navigation.next %]
[ <a href='[% uri(navigation.next) %]'>[% gettext("Next") %]</a> ] 74 83 <a href='[% uri(navigation.next) %]'>
84 <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
85 </a>
[% ELSE %] 75 86 [% ELSE %]
[ <span class='insen'>[% gettext("Next") %]</span> ] 76 87 <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]">
[% END %] 77 88 [% END %]
89 </td>
90 </tr>
91 </table>
</div> 78 92 </div>
79 93
<hr /> 80 94 <hr />
81 95
<div class="menu"> 82 96 <div class="menu">
[% index() %] 83 97 [% index() %]
</div> 84 98 </div>
85 99
[% options.empty_lines = "default" %] 86 100 [% options.empty_lines = "default" %]
87 101
<!-- Wiki content --> 88 102 <!-- Wiki content -->
89 103
<div class='pages'> 90 104 <div class='pages'>
<!--[% FOR page IN pages %]--> 91 105 <!--[% FOR page IN pages %]-->
<div class='heading'> 92 106 <div class='heading'>
<h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1> 93 107 <h1>[% page.title %] <a name='[% anchor(page) %]'></a></h1>
</div> 94 108 </div>
95 109
<div class='content'> 96 110 <div class='content'>
[% page.body %] 97 111 [% page.body %]
</div> 98 112 </div>
99 113
<br /> 100 114 <br />
101 115
<div class='page-footer'> 102 116 <div class='page-footer'>
<!--[% FOR link IN page.backlinks %]--> 103 117 <!--[% FOR link IN page.backlinks %]-->
[% IF loop.first %]<b>[% gettext("Backlinks:") %]</b>[% END %] 104 118 [% IF loop.first %]<b>[% gettext("Backlinks:") %]</b>[% END %]
105 119
<a href='[% uri(link) %]'>[% link.name %]</a> 106 120 <a href='[% uri(link) %]'>[% link.name %]</a>
107 121
[% IF loop.last %]<br /><br />[% END %] 108 122 [% IF loop.last %]<br /><br />[% END %]
<!--[% END %]--> 109 123 <!--[% END %]-->
110 124
<!--[% FOR file IN page.attachments %]--> 111 125 <!--[% FOR file IN page.attachments %]-->
[% IF loop.first %] 112 126 [% IF loop.first %]
templates/html/common/arrow-left-inact.png

981 Bytes

templates/html/common/arrow-left.png

1.52 KB

templates/html/common/arrow-right-inact.png

1004 Bytes

templates/html/common/arrow-right.png

1.58 KB

templates/html/common/arrow-up-inact.png

935 Bytes

templates/html/common/arrow-up.png

1.48 KB

templates/html/common/hljs/highlight.pack.full.js
No preview for this file type
templates/html/common/hljs/hljs_octave.js
/* 1 File was deleted
Language: Matlab 2
Author: Denis Bardadym <bardadymchik@gmail.com> 3
Contributors: Eugene Nizhibitsky <nizhibitsky@ya.ru>, Egor Rogov <e.rogov@postgrespro.ru> 4
Category: scientific 5
*/ 6
7
/* 8
Formal syntax is not published, helpful link: 9
https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf 10
*/ 11
hljs_octave = function(hljs) { 12
13
var TRANSPOSE_RE = '(\'|\\.\')+'; 14
var TRANSPOSE = { 15
relevance: 0, 16
contains: [ 17
{ begin: TRANSPOSE_RE } 18
] 19
}; 20
21
return { 22
keywords: { 23
keyword: 24
'break case catch classdef continue else elseif end enumerated events for function ' + 25
'global if methods otherwise parfor persistent properties return spmd switch try while', 26
built_in: 27
'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' + 28
'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' + 29
'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' + 30
'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' + 31
'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' + 32
'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint ' + 33
/*'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' +*/ 34
'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' + 35
'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' + 36
'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' + 37
'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' + 38
'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' + 39
'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' + 40
'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' + 41
'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' + 42
'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' + 43
'legend intersect ismember procrustes hold num2cell ' 44
}, 45
illegal: '(//|"|#|/\\*|\\s+/\\w+)', 46
contains: [ 47
{ 48
className: 'function', 49
beginKeywords: 'function', end: '$', 50
contains: [ 51
hljs.UNDERSCORE_TITLE_MODE, 52
{ 53
className: 'params', 54
variants: [ 55
{begin: '\\(', end: '\\)'}, 56
{begin: '\\[', end: '\\]'} 57
] 58
} 59
] 60
}, 61
{ 62
className: 'built_in', 63
begin: /true|false/, 64
relevance: 0, 65
starts: TRANSPOSE 66
}, 67
{ 68
begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE, 69
relevance: 0 70
}, 71
{ 72
className: 'number', 73
begin: hljs.C_NUMBER_RE, 74
relevance: 0, 75
starts: TRANSPOSE 76
}, 77
{ 78
className: 'string', 79
begin: '\'', end: '\'', 80
contains: [ 81
hljs.BACKSLASH_ESCAPE, 82
{begin: '\'\''}] 83
}, 84
{ 85
begin: /\]|}|\)/, 86
relevance: 0, 87
starts: TRANSPOSE 88
}, 89
{ 90
className: 'string', 91
begin: '"', end: '"', 92
contains: [ 93
hljs.BACKSLASH_ESCAPE, 94
{begin: '""'} 95
], 96
starts: TRANSPOSE 97
}, 98
hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'), 99
hljs.COMMENT('\\%', '$') 100
templates/html/common/util/highlight.pack.full.js
No preview for this file type
templates/html/common/util/hljs_octave.js
File was created 1 /*
2 Language: Matlab
3 Author: Denis Bardadym <bardadymchik@gmail.com>
4 Contributors: Eugene Nizhibitsky <nizhibitsky@ya.ru>, Egor Rogov <e.rogov@postgrespro.ru>
5 Category: scientific
6 */
7
8 /*
9 Formal syntax is not published, helpful link:
10 https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf
11 */
12 hljs_octave = function(hljs) {
13
14 var TRANSPOSE_RE = '(\'|\\.\')+';
15 var TRANSPOSE = {
16 relevance: 0,
17 contains: [
18 { begin: TRANSPOSE_RE }
19 ]
20 };
21
22 return {
23 keywords: {
24 keyword:
25 'break case catch classdef continue else elseif end enumerated events for function ' +
26 'global if methods otherwise parfor persistent properties return spmd switch try while',
27 built_in:
28 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' +
29 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' +
30 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' +
31 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' +
32 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' +
33 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint ' +
34 /*'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' +*/
35 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' +
36 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' +
37 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' +
38 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' +
39 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' +
40 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' +
41 'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' +
42 'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' +
43 'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' +
44 'legend intersect ismember procrustes hold num2cell '
45 },
46 illegal: '(//|"|#|/\\*|\\s+/\\w+)',
47 contains: [
48 {
49 className: 'function',
50 beginKeywords: 'function', end: '$',
51 contains: [
52 hljs.UNDERSCORE_TITLE_MODE,
53 {
54 className: 'params',
55 variants: [
56 {begin: '\\(', end: '\\)'},
57 {begin: '\\[', end: '\\]'}
58 ]
59 }
60 ]
61 },
62 {
63 className: 'built_in',
64 begin: /true|false/,
65 relevance: 0,
66 starts: TRANSPOSE
67 },
68 {
69 begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE,
70 relevance: 0
71 },
72 {
73 className: 'number',
74 begin: hljs.C_NUMBER_RE,
75 relevance: 0,
76 starts: TRANSPOSE
77 },
78 {
79 className: 'string',
80 begin: '\'', end: '\'',
81 contains: [
82 hljs.BACKSLASH_ESCAPE,
83 {begin: '\'\''}]
84 },
85 {
86 begin: /\]|}|\)/,
87 relevance: 0,
88 starts: TRANSPOSE
89 },
90 {
91 className: 'string',
92 begin: '"', end: '"',
93 contains: [
94 hljs.BACKSLASH_ESCAPE,
95 {begin: '""'}
96 ],
97 starts: TRANSPOSE
98 },
99 hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'),
100 hljs.COMMENT('\\%', '$')
templates/html/common/zim-table-style.css
/* Table definition */ 1 1 /* Table definition */
2 2
table { 3 3 table {
border-collapse: collapse; 4 4 border-collapse: collapse;
width: 98%; 5 5 width: 98%;
margin-left: auto; 6 6 margin-left: auto;
margin-right: auto; 7 7 margin-right: auto;
} 8 8 }
9 9
td,th { 10 10 td,th {
border: 1px solid #ddd; 11 11 border: 1px solid #ddd;
padding: 4px; 12 12 padding: 4px;
} 13 13 }
14 14
15 15
tr:nth-child(even){background-color: #f2f2f2;} 16 16 tr:nth-child(even){background-color: #f2f2f2;}
17 17
tr:hover {background-color: #ddd;} 18 18 tr:hover {background-color: #ddd;}
19 19
th { 20 20 th {
padding-top: 6px; 21 21 padding-top: 6px;
padding-bottom: 6px; 22 22 padding-bottom: 6px;
/*background-color: #4CAF50;*/ 23 23 /*background-color: #4CAF50;*/
/*background-color: #3a853c;*/ 24 24 /*background-color: #3a853c;*/
/*background-color: #85733a;*/ 25 25 /*background-color: #85733a;*/
/*background-color: #3a7685;*/ 26 26 /*background-color: #3a7685;*/
/*background-color: #295e2a;*/ 27 27 /*background-color: #295e2a;*/
/*color: white;*/ 28 28 /*color: white;*/
29 29
/*background-color: #d1e1c1;*/ 30 30 /*background-color: #d1e1c1;*/
background-color: #bbb; 31 31 background-color: #bbb;
color: black; 32 32 color: black;
} 33 33 }
34
35 table.navigation {
36 border-collapse: collapse;
37 width: auto;
38 margin-left: 0;
39 margin-right: auto;
40 }
41
42 td.navigation, th.navigation {