I used the following code to have richtext:
GUIStyle style = new GUIStyle();
style.richText = true;
EditorGUILayout.LabelField("Some <color=yellow>RICH</color> text", style);
However, the font and the padding is is different than the default style used in the editor. What other properties should I set to the style to match the editor’s default?
Turns out I had to initialize the style correctly:
GUIStyle style = new GUIStyle(GUI.skin.label);