Method: Yast::HTMLClass#Colorize
- Defined in:
- library/wizard/src/modules/HTML.rb
#Colorize(text, color) ⇒ Object
Colorize a piece of HTML code
i.e. embed it into [font color="..."]...[/font]
You still need to embed that into a paragraph or heading etc.!
179 180 181 |
# File 'library/wizard/src/modules/HTML.rb', line 179 def Colorize(text, color) Builtins.sformat("<font color=\"%1\">%2</font>", color, text) end |