I happily began to implement this code I found in the forum. But when I retyped the embedded tokens it didn't format the sentence anymore. I even closed the program and reopened it and still it won't work as intended. I can implement code far better than I can figure it up. Heres the code. Can anyone help explain what the problem is? Thanks!
B4X:
Dim rs As RichString
rs.Initialize("(R){T}{Blue}This{Blue}{T}{R} {U}is{U} another {Red}{BI}Rich{Red}String{BI}")
rs.Color2(Colors.Blue,"{Blue}")
rs.RelativeSize2(3.5, "{R}")
rs.Typeface2("serif", "{T}")
rs.Underscore2("{U}")
rs.Color2(Colors.Red, "{Red}")
rs.Style2(rs.STYLE_BOLD_ITALIC, "{BI}")
Dim msg As Msgbox3
msg.Show(rs, "RichString Demo", "OK", "", "", Null)