//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="buffer">The text buffer</param> /// <param name="classifier">The classifier</param> /// <param name="ignoredClassifications">An optional enumerable list of ignored classifications for /// the buffer's content type</param> public MarkdownTextTagger(ITextBuffer buffer, IClassifier classifier, IEnumerable <string> ignoredClassifications) { classificationCache = ClassificationCache.CacheFor(buffer.ContentType.TypeName); this.buffer = buffer; this.classifier = classifier; this.ignoredClassifications = (ignoredClassifications ?? Enumerable.Empty <string>()); this.classifier.ClassificationChanged += ClassificationChanged; }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="buffer">The text buffer</param> /// <param name="classifier">The classifier</param> /// <param name="ignoredXmlElements">An optional enumerable list of ignored XML elements</param> /// <param name="spellCheckedXmlAttributes">An optional enumerable list of spell checked XML attributes</param> /// <param name="ignoredClassifications">An optional enumerable list of ignored classifications for /// the buffer's content type</param> public CommentTextTagger(ITextBuffer buffer, IClassifier classifier, IEnumerable <string> ignoredXmlElements, IEnumerable <string> spellCheckedXmlAttributes, IEnumerable <string> ignoredClassifications) { classificationCache = ClassificationCache.CacheFor(buffer.ContentType.TypeName); this.buffer = buffer; this.classifier = classifier; this.classifier.ClassificationChanged += ClassificationChanged; this.ignoredXmlElements = (ignoredXmlElements ?? Enumerable.Empty <string>()); this.spellCheckedXmlAttributes = (spellCheckedXmlAttributes ?? Enumerable.Empty <string>()); this.ignoredClassifications = (ignoredClassifications ?? Enumerable.Empty <string>()); }