forked from sbarex/SourceCodeSyntaxHighlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.lua
More file actions
45 lines (38 loc) · 1.14 KB
/
Copy pathabout.lua
File metadata and controls
45 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description="Highlight about info."
Categories = { "format", "html", "rtf" }
function formatUpdate(desc)
function DocumentFooter(numFiles, currFile, options)
if HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML then
return "<div class='hl slc about'><hr size='1' />" .. os.getenv("SH_VERSION") .. "</div>"
end
end
end
function themeUpdate(desc)
if (HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
local style = [[
.about {
font-size: 72%;
margin-top: 2.5em;
padding-top: .5em;
user-select: none;
-webkit-user-select: none;
text-align: center;
font-family: 'ui-monospace';
}
.about hr {
height: 0px;
border-top: 1px solid rgba(0,0,0,.5);
border-bottom: none;
box-shadow: 0px 1px 0px rgba(255,255,255, .5);
}
.about a {
color: inherit;
}
]]
Injections[#Injections+1] = style
end
end
Plugins={
{ Type="format", Chunk=formatUpdate },
{ Type="theme", Chunk=themeUpdate }
}