If you only want to change the color of a certain part of the text, you can change it in the following way:
<text>哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈这是一条<font color='#fe0000'>测试</font>文本
</text>
Even text wrapping is not affected.
Display the result:
If you only want to change the color of a certain part of the text, you can change it in the following way:
<text>哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈这是一条<font color='#fe0000'>测试</font>文本
</text>
Even text wrapping is not affected.
Display the result: