ui/richtext/bases/RichTextNumber.cs

A small UI rich text element that matches numeric tokens. It is decorated with a RichTextPanel attribute containing a regex to identify numbers with optional decimals and suffixes, and it sets empty Icon and white Color properties.

[RichTextPanel( @"\b\d+(?:\.\d+)?(?:st|nd|rd|th|[sm%°])?" )]
public class RichTextNumber : RichTextBase
{
	public override string Icon => "";
	public override Color Color => Color.White;
}