From fc8a05358a92cc3c77c5f1e30d536807ef0614fd Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 8 Apr 2019 13:49:55 +0300 Subject: were added scripting projects --- .../Highlighting/IHighlightingDefinition.cs | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/IHighlightingDefinition.cs (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/IHighlightingDefinition.cs') diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/IHighlightingDefinition.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/IHighlightingDefinition.cs new file mode 100644 index 000000000..0b42cd426 --- /dev/null +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/IHighlightingDefinition.cs @@ -0,0 +1,54 @@ +// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) +// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) + +using System; +using System.Collections.Generic; +using System.ComponentModel; + +namespace Tango.Scripting.Editors.Highlighting +{ + /// + /// A highlighting definition. + /// + [TypeConverter(typeof(HighlightingDefinitionTypeConverter))] + public interface IHighlightingDefinition + { + /// + /// Gets the name of the highlighting definition. + /// + string Name { get; } + + /// + /// Gets the main rule set. + /// + HighlightingRuleSet MainRuleSet { get; } + + /// + /// Gets a rule set by name. + /// + /// The rule set, or null if it is not found. + HighlightingRuleSet GetNamedRuleSet(string name); + + /// + /// Gets a named highlighting color. + /// + /// The highlighting color, or null if it is not found. + HighlightingColor GetNamedColor(string name); + + /// + /// Gets the list of named highlighting colors. + /// + IEnumerable NamedHighlightingColors { get; } + } + + /// + /// Extension of IHighlightingDefinition to avoid breaking changes in the API. + /// + public interface IHighlightingDefinition2 : IHighlightingDefinition + { + /// + /// Gets the list of properties. + /// + IDictionary Properties { get; } + } +} -- cgit v1.3.1