textbox multiple colors or style
#1
Hello,

Can I somehow differentiate text in a controlTextbox?

For example I want some of the text to be bold/different color/underlined/any differernt and some of it regular in one textbox?

Like this:

--------------------------------------------------------------
This is formal message.

These are users' messages.
--------------------------------------------------------------


Thanks.
Reply
#2
Kodi UI labels support BBcode-like text formatting tags. I can't show an example right now from a tablet but look into the Kodi Wiki.
Reply
#3
I wish there is more but afaik, only bold, italic and color are supported.
link is here.

quick copy/pasta:
  • $INFO[ListItem.Title,prefix,postfix] - for specifying an info label.
  • $LOCALIZE[12345] - for specifying a localized string.
  • $ADDON[script.music.foobar 12345] - for specifying a string provided by an addon.
  • $NUMBER[] - for specifying a numerical value.
  • [ B]bold[/B] - bold text. (use[B] not [ B])
  • [ I]italics[/I] - italic text.
  • [LIGHT]lighten[/LIGHT] - light weight text (Jarvis onward).
  • [COLOR red]red text[/COLOR] - colored text.
  • [UPPERCASE]uppercase text[/UPPERCASE] - all text is made uppercase e.g. UPPERCASE TEXT
  • [LOWERCASE]lowercase text[/LOWERCASE] - all text is made lowercase e.g. lowercase text
  • [CAPITALIZE]capitalized text[/CAPITALIZE] - first letter of every word is capitalized (Isengard onward) e.g. Capitalized Text [CR] - carriage return (line break).

many of these colors are recognized
Reply
#4
here's the actual list of color names you can use in kodi:
https://github.com/xbmc/xbmc/blob/master...colors.xml
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Great! Thank you all very much
Reply
#6
@ronie 

Is it possible to use background color tags ([BGCOLOR]<color-value>[/BGCOLOR])?
Reply
#7
Excuse me, I meant <backgroundcolor>VALUE</backgroundcolor>
Reply

Logout Mark Read Team Forum Stats Members Help
textbox multiple colors or style0