Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Two Colours In One HTML Text String

edited November 2018 in OpenSesame

Hi all,

I have a quick question regarding two different font colours in one line of text. Currently the script is:

draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=32 html=yes show_if=always text="[hint_word] - [code_word]" x=-128 y=0 z_index=0

This displays

[hint_word] - [code_word] on the screen. (The actual words are read in from an excel file).

However I need the hint_word to be black and the code_word to be a different colour. I have tried doing what many have suggested in various stack exchange posts for HTML, but I am having trouble translating that into OS.

Cheers,
Liam

Comments

Sign In or Register to comment.