GV color as text BG?

I’d like to point the text background color to a global variable colour is this possible? what do I put instead of #color in the formula (if possible)? I’m not very experienced in this stuff but I hope you understand what I’m looking for :man_shrugging:t2:

[bg=#FFFFFF]text[/bg]

Hi @Williams ,

Here’s how to set a background color is the text using a global variable.

[bg=$gv(bgcolor)$]text[/bg]

:memo: NOTES

  • Assuming the name of the global variable is: bgcolor
  • Replace the color code (e.g. #FF0000 ) with the global variable call using $gv(…)$ function (e.g. $gv(bgcolor)$ )

Below is a screenshot of an example for setting both the background and the foreground colors of a text, using BB Code.

Global variables

  • TYPE: Color
  • NAMEs: bgcolor for background color, fgcolor for foreground color

I hope this would help.

:smiling_face::+1:

@Baju_Santiko Thank you!