[SOLVED] Text Markup list

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.

Markup from code works?


What wrong?
image
In play mode not works too
All text is one element

Probably the hex code needs to be in quotes

[color="#ff0000"]red[/color]
2 Likes
text = '[color="#ff0000"]text[/color]';

Worked fine. Need add to docs. With avaible tags and formats.

1 Like

Added currently supported tags: https://github.com/playcanvas/engine/pull/2306

2 Likes

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:

https://developer.playcanvas.com/en/api/pc.ElementComponent.html#text

1 Like

Thanks, were able to use outline to fake bold text :slight_smile: