ui/richtext/RichTextLegendary.cs

A RichTextPanel handler for parsing the word 'Legendary' (case-insensitive) and applying styling. It sets a green color, italic true, and font weight 600.

using Sandbox.UI;

[RichTextPanel( @"\b[Ll]egendary\b" )]
public class RichTextLegendary : RichTextBase
{
	public override Color Color => new Color( 0.3f, 0.8f, 0.3f );
	public override bool Italic => true;
	public override int? FontWeight => 600;
}