ui/richtext/bases/RichTextNumberPositive.cs

A small RichText panel class that matches positive numbers in text. It declares a RichTextPanel attribute with a regex pattern and sets the icon to empty and the color to green.

[RichTextPanel( @"\+(?:(?!0+(?:\.0+)?%)(\d+(?:\.\d+)?[%m]|\d*\.\d+(?![sm]\b)|\d+(?!\.?\d*[sm]\b)))" )]
public class RichTextNumberPositive : RichTextBase
{
	public override string Icon => "";
	public override Color Color => Color.Green;
}