Beispiel #1
0
 protected Classifier(IStandardClassificationRegistry standardClassificationRegistry, HashSet<string> keywords, ITextBuffer buffer)
 {
     _standardClassificationRegistry = standardClassificationRegistry;
     _keywords = keywords;
     _partitionTokenTypeCache = new PartitionTokenTypeCache(this);
     buffer.Changed += OnBufferChanged;
 }
Beispiel #2
0
 protected Classifier(IStandardClassificationRegistry standardClassificationRegistry, HashSet <string> keywords, ITextBuffer buffer)
 {
     _standardClassificationRegistry = standardClassificationRegistry;
     _keywords = keywords;
     _partitionTokenTypeCache = new PartitionTokenTypeCache(this);
     buffer.Changed          += OnBufferChanged;
 }
		public ClassificationStyler(IStandardClassificationRegistry standardClassificationRegistry)
		{
			_standardClassificationRegistry = standardClassificationRegistry;

			// Default colors (for a dark background)
			_classificationColors = new Dictionary<IClassification, Color>
			{
				{_standardClassificationRegistry.Keyword, Colors.LightBlue},
				{_standardClassificationRegistry.Identifier, Colors.White},
				{_standardClassificationRegistry.WhiteSpace, Colors.DarkYellow},
				{_standardClassificationRegistry.Text, Colors.White},
				{_standardClassificationRegistry.Operator, Colors.Pink},
				{_standardClassificationRegistry.Punctuation, Colors.Offwhite},
				{_standardClassificationRegistry.String, Colors.LightBrown},
				{_standardClassificationRegistry.Comment, Colors.Grey},
				{_standardClassificationRegistry.Number, Colors.Green},
			};
		}
        public ClassificationStyler(IStandardClassificationRegistry standardClassificationRegistry)
        {
            _standardClassificationRegistry = standardClassificationRegistry;

            // Default colors (for a dark background)
            _classificationColors = new Dictionary <IClassification, Color>
            {
                { _standardClassificationRegistry.Keyword, Colors.LightBlue },
                { _standardClassificationRegistry.Identifier, Colors.White },
                { _standardClassificationRegistry.WhiteSpace, Colors.DarkYellow },
                { _standardClassificationRegistry.Text, Colors.White },
                { _standardClassificationRegistry.Operator, Colors.Pink },
                { _standardClassificationRegistry.Punctuation, Colors.Offwhite },
                { _standardClassificationRegistry.String, Colors.LightBrown },
                { _standardClassificationRegistry.Comment, Colors.Grey },
                { _standardClassificationRegistry.Number, Colors.Green },
            };
        }
Beispiel #5
0
 public UnityScriptClassifier(IStandardClassificationRegistry standardClassificationRegistry, ITextBuffer buffer)
     : base(standardClassificationRegistry, Keywords, buffer)
 {
 }
 public TextClassifier(IStandardClassificationRegistry standardClassificationRegistry)
 {
     _standardClassificationRegistry = standardClassificationRegistry;
 }
 public CSharpClassifier(IStandardClassificationRegistry standardClassificationRegistry, ITextBuffer buffer)
     : base(standardClassificationRegistry, Keywords, buffer)
 {
 }
			public TextClassifier(IStandardClassificationRegistry standardClassificationRegistry)
			{
				_standardClassificationRegistry = standardClassificationRegistry;
			}
		public UnityScriptClassifier(IStandardClassificationRegistry standardClassificationRegistry, ITextBuffer buffer)
			: base(standardClassificationRegistry, Keywords, buffer)
		{
		}
		public CSharpClassifier(IStandardClassificationRegistry standardClassificationRegistry, ITextBuffer buffer)
			: base(standardClassificationRegistry, Keywords, buffer)
		{
		}