mirror of https://github.com/lcpz/lain.git
markup: added fontfg and fontbg
This commit is contained in:
parent
08b9a76662
commit
19a7003b34
|
@ -44,6 +44,16 @@ function markup.color(fg, bg, text)
|
|||
return string.format('<span foreground="%s" background="%s">%s</span>', fg, bg, text)
|
||||
end
|
||||
|
||||
-- Set font and foreground.
|
||||
function markup.fontfg(font, fg, text)
|
||||
return string.format('<span font="%s" foreground="%s">%s</span>', font, fg, text)
|
||||
end
|
||||
|
||||
-- Set font and background.
|
||||
function markup.fontbg(font, bg, text)
|
||||
return string.format('<span font="%s" background="%s">%s</span>', font, bg, text)
|
||||
end
|
||||
|
||||
-- Set font, foreground and background.
|
||||
function markup.fontcolor(font, fg, bg, text)
|
||||
return string.format('<span font="%s" foreground="%s" background="%s">%s</span>', font, fg, bg, text)
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 3216fb787a4cb3fbefd8549b2e1323f9412e788e
|
||||
Subproject commit 52bb0c1757addd08ca4de6b7c02444b32a9497ef
|
Loading…
Reference in New Issue