X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fadc722655b2ba4ebe98eece3498da3c88f8b6fc..055e663772628e5a2ddb9c056da7222af517d086:/util/markup.lua?ds=inline diff --git a/util/markup.lua b/util/markup.lua index 346cfe1..0eb9bfa 100644 --- a/util/markup.lua +++ b/util/markup.lua @@ -1,11 +1,10 @@ - --[[ - - Licensed under MIT License - * (c) 2013, Luke Bonham - * (c) 2009, Uli Schlachter - * (c) 2009, Majic - + + Licensed under MIT License + * (c) 2013, Luke Bonham + * (c) 2009, Uli Schlachter + * (c) 2009, Majic + --]] local string = { format = string.format } @@ -44,6 +43,16 @@ function markup.color(fg, bg, text) return string.format('%s', fg, bg, text) end +-- Set font and foreground. +function markup.fontfg(font, fg, text) + return string.format('%s', font, fg, text) +end + +-- Set font and background. +function markup.fontbg(font, bg, text) + return string.format('%s', font, bg, text) +end + -- Set font, foreground and background. function markup.fontcolor(font, fg, bg, text) return string.format('%s', font, fg, bg, text)