Esempio n. 1
0
        public void SetSyntax(StandardSyntaxType type)
        {
            var name = type.GetAttributeProperty <SyntaxModeNameAttribute, string>(attribute => attribute.Name) ?? "";

            _editor.SetHighlighting(name);
        }
Esempio n. 2
0
        public void SetSyntax(StandardSyntaxType type)
        {
            var name = type.GetAttributeProperty <SyntaxModeNameAttribute, string>(attribute => attribute.Name) ?? "";

            _editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition(name);
        }