public void SetSyntax(StandardSyntaxType type) { var name = type.GetAttributeProperty <SyntaxModeNameAttribute, string>(attribute => attribute.Name) ?? ""; _editor.SetHighlighting(name); }
public void SetSyntax(StandardSyntaxType type) { var name = type.GetAttributeProperty <SyntaxModeNameAttribute, string>(attribute => attribute.Name) ?? ""; _editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition(name); }