So, I set the ‘markup’ for text.
I can see that [color=#xxxxx][/color] is working.
But what else works? were is the list?
b & /b" doesn’t work, also i & /i.
Tn’x
So, I set the ‘markup’ for text.
I can see that [color=#xxxxx][/color] is working.
But what else works? were is the list?
b & /b" doesn’t work, also i & /i.
Tn’x
Hi @mlebel,
Right now only color is supported in text markup. There is a very elaborate markup parser and scanner in the engine so I imagine soon we will get more tags (@will).
Markup tags is only color? Not extended?
Yes, right now they support only color.
Probably the hex code needs to be in quotes
[color="#ff0000"]red[/color]
text = '[color="#ff0000"]text[/color]';
Worked fine. Need add to docs. With avaible tags and formats.
Added currently supported tags: https://github.com/playcanvas/engine/pull/2306
Hey, how is this today?
Is it possible to get bold and italic for instance in the same text field?
I’m afraid not, the supported tags are from here:
Thanks, were able to use outline to fake bold text
One year later again the question: Do you want to add more tags for the element text components? I think basic markup options would be nice if you have to format a lot of text.
Still great questions. I love to have more.