[Goodies-dev] [Bug 12653] Custom colors in output

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Jun 16 04:30:21 CEST 2016


https://bugzilla.xfce.org/show_bug.cgi?id=12653

ToZ <tony.paulic at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tony.paulic at gmail.com
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from ToZ <tony.paulic at gmail.com> ---
I forgot to mention this in the forum response, but this is already possible
using pango markup (see:
https://developer.gnome.org/pango/stable/PangoMarkupFormat.html). For your
example, you would use:

<txt>Default Color text<span fgcolor="#BeDead">LightGreenText</span>And now
default again</txt>

If you are echo-ing this out, make sure you escape the quotes:

echo "<txt>Default Color text<span fgcolor=\"#BeDead\">LightGreenText</span>And
now default again</txt>"

...or use single quotes:

echo "<txt>Default Color text<span fgcolor='#BeDead'>LightGreenText</span>And
now default again</txt>"

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the Goodies-dev mailing list