当前位置: 首页>>代码示例>>C#>>正文


C# IClassificationTypeRegistryService.GetClassificationType方法代码示例

本文整理汇总了C#中IClassificationTypeRegistryService.GetClassificationType方法的典型用法代码示例。如果您正苦于以下问题:C# IClassificationTypeRegistryService.GetClassificationType方法的具体用法?C# IClassificationTypeRegistryService.GetClassificationType怎么用?C# IClassificationTypeRegistryService.GetClassificationType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IClassificationTypeRegistryService的用法示例。


在下文中一共展示了IClassificationTypeRegistryService.GetClassificationType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MarkdownClassifier

 public MarkdownClassifier(IClassificationTypeRegistryService registry)
 {
     _bold = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownBold);
     _italic = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownItalic);
     _header = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownHeader);
     _code = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownCode);
 }
开发者ID:joeriks,项目名称:WebEssentials2013,代码行数:7,代码来源:MarkdownClassifier.cs

示例2: SqlClassifier

 internal SqlClassifier(ITagAggregator<NaturalTextTag> tagger, IClassificationTypeRegistryService classificationRegistry)
 {
     this.tagger = tagger;
     keywordType = classificationRegistry.GetClassificationType("sql-keyword");
     functionType = classificationRegistry.GetClassificationType("sql-function");
     variableType = classificationRegistry.GetClassificationType("sql-variable");
 }
开发者ID:Test20130521,项目名称:SqlSyntaxHighlighting,代码行数:7,代码来源:SqlClassifier.cs

示例3: UsageClassifier

 public UsageClassifier(IClassificationTypeRegistryService classificationRegistry, ITextBuffer textBuffer)
 {
     _highlightOne = classificationRegistry.GetClassificationType(ClassificationTypes.HighlightOneName);
       _highlightTwo = classificationRegistry.GetClassificationType(ClassificationTypes.HighlightTwoName);
       _textBuffer = textBuffer;
       _textBuffer.Changed += (_, args) => UpdateUsageHighlighting(Enumerable.Empty<GotoInfo>());
 }
开发者ID:vestild,项目名称:nemerle,代码行数:7,代码来源:UsageClassifier.cs

示例4: DockerfileClassifier

 public DockerfileClassifier(IClassificationTypeRegistryService registry)
 {
     _keyword = registry.GetClassificationType(PredefinedClassificationTypeNames.Keyword);
     _comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
     _string = registry.GetClassificationType(PredefinedClassificationTypeNames.String);
     _symbol = registry.GetClassificationType(DockerfileClassificationTypes.Keyword);
 }
开发者ID:venux,项目名称:WebEssentials2015,代码行数:7,代码来源:DockerfileClassifier.cs

示例5: DothtmlClassifier

 /// <summary>
 /// Initializes a new instance of the <see cref="DothtmlClassifier"/> class.
 /// </summary>
 public DothtmlClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer)
 {
     tokenizer = new DothtmlTokenizer();
     this.buffer = buffer;
     bindingBrace = registry.GetClassificationType(DothtmlClassificationTypes.BindingBrace);
     bindingContent = registry.GetClassificationType(DothtmlClassificationTypes.BindingContent);
 }
开发者ID:ElboNet,项目名称:dotvvm,代码行数:10,代码来源:DothtmlClassifier.cs

示例6: WacomTranslationDatabaseHighlighter

		internal WacomTranslationDatabaseHighlighter(IClassificationTypeRegistryService registry)
		{
			_keyType = registry.GetClassificationType("wacom.tdb.key");
			_valType = registry.GetClassificationType("wacom.tdb.value");
			_sepType = registry.GetClassificationType("wacom.tdb.separator");
			_errType = registry.GetClassificationType("wacom.tdb.error");
		}
开发者ID:ben,项目名称:WacomTranslationDatabaseHighlighter,代码行数:7,代码来源:WacomTranslationDatabaseHighlighter.cs

示例7: VendorClassifier

 internal VendorClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer)
 {
     _registry = registry;
     _buffer = buffer;
     _decClassification = _registry.GetClassificationType(ClassificationTypes._declaration);
     _valClassification = _registry.GetClassificationType(ClassificationTypes._value);
 }
开发者ID:LogoPhonix,项目名称:WebEssentials2012,代码行数:7,代码来源:VendorClassifier.cs

示例8: RobotsTxtSyntacticParser

 public RobotsTxtSyntacticParser(IClassificationTypeRegistryService registry)
 {
     _commentType = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
     _delimiterType = registry.GetClassificationType("RobotsTxt/Delimiter");
     _recordNameType = registry.GetClassificationType("RobotsTxt/RecordName");
     _recordValueType = registry.GetClassificationType("RobotsTxt/RecordValue");
 }
开发者ID:peterwie,项目名称:RobotsTxtLanguageService,代码行数:7,代码来源:RobotsTxtSyntacticParser.cs

示例9: BuildOutputClassifier

 /// <summary>
 /// Initializes a new instance of the <see cref="BuildOutputClassifier"/> class.
 /// </summary>
 /// <param name="registry">Classification registry.</param>
 internal BuildOutputClassifier(IClassificationTypeRegistryService registry) {
     classificationTypes = new Dictionary<String, IClassificationType> {
         { ClassificationType.BuildResultSucceeded, registry.GetClassificationType(ClassificationType.BuildResultSucceeded) },
         { ClassificationType.BuildResultFailed, registry.GetClassificationType(ClassificationType.BuildResultFailed) },
         { ClassificationType.BuildMessageError, registry.GetClassificationType(ClassificationType.BuildMessageError) },
         { ClassificationType.BuildMessageWarning, registry.GetClassificationType(ClassificationType.BuildMessageWarning) }
     };
 }
开发者ID:SergeyNovitsky,项目名称:VSOutputEnhancer,代码行数:12,代码来源:BuildOutputClassifier.cs

示例10: StorEvilClassifier

 internal StorEvilClassifier(IClassificationTypeRegistryService registry)
 {
     _pending = registry.GetClassificationType("StorEvil.VS2010.Pending");
     _comment = registry.GetClassificationType("StorEvil.VS2010.Comment");
     _interpreted = registry.GetClassificationType("StorEvil.VS2010.Interpreted");
     _scenarioStart = registry.GetClassificationType("StorEvil.VS2010.ScenarioStart");
     _table = registry.GetClassificationType("StorEvil.VS2010.Table");
 }
开发者ID:heinrichbreedt,项目名称:storevil,代码行数:8,代码来源:StorEvilClassifier.cs

示例11: WebVttClassifier

 public WebVttClassifier(IClassificationTypeRegistryService registry)
 {
     _markup = registry.GetClassificationType(WebVttClassificationTypes.Markup);
     _name = registry.GetClassificationType(WebVttClassificationTypes.Name);
     _statement = registry.GetClassificationType(WebVttClassificationTypes.Statement);
     _time = registry.GetClassificationType(WebVttClassificationTypes.Time);
     _comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
 }
开发者ID:EdsonF,项目名称:WebEssentials2013,代码行数:8,代码来源:WebVttClassifier.cs

示例12: VccClassifier

 internal VccClassifier(IClassificationTypeRegistryService registry)
 {
   this.keywordType = registry.GetClassificationType(VccClassificationTypeDefinitions.KeywordType);
   this.specType= registry.GetClassificationType(VccClassificationTypeDefinitions.SpecType);
   this.dimmedKeywordType = registry.GetClassificationType(VccClassificationTypeDefinitions.DimmedKeywordType);
   this.dimmedSpecType = registry.GetClassificationType(VccClassificationTypeDefinitions.DimmedSpecType);
   VSPackagePackage.Instance.OptionPage.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(OptionPage_PropertyChanged);
 }
开发者ID:edgar-pek,项目名称:VCDryad,代码行数:8,代码来源:VccClassifier.cs

示例13: HSPClassifier

        internal HSPClassifier(IClassificationTypeRegistryService registry)
        {
            _validType = registry.GetClassificationType("HSPClassifierValidFormat");
            _normalType = registry.GetClassificationType("HSPClassifierNormalFormat");

            _commentoutType = registry.GetClassificationType("HSPClassifierCommentOutFormat");
            _keywordType = registry.GetClassificationType("HSPClassifierKeywordFormat");
        }
开发者ID:kkrnt,项目名称:hsp.vs,代码行数:8,代码来源:HSPClassifier.cs

示例14: EditorClassifierMaxMinLenRow

 internal EditorClassifierMaxMinLenRow(ITextBuffer bufferToClassify, IClassificationTypeRegistryService registry)
 {
     buffer = bufferToClassify;
     _classificationTypeVeryLong = registry.GetClassificationType("VeryLongStr");
     _classificationTypeLong = registry.GetClassificationType("LongStr"); ;
     _classificationTypeNormal = registry.GetClassificationType("NormStr"); ;
     _classificationTypeSmall = registry.GetClassificationType("SmallStr"); ;
     _classificationTypeVerySmall = registry.GetClassificationType("VerySmallStr"); ;
 }
开发者ID:BMichael998,项目名称:ExpansionIDE,代码行数:9,代码来源:EditorClassifierMaxMinLenRow.cs

示例15: RobotsTxtClassifier

        /// <summary>
        /// Initializes a new instance of the <see cref="RobotsTxtClassifier"/> class.
        /// </summary>
        /// <param name="registry">Classification registry.</param>
        public RobotsTxtClassifier(ITextBuffer buffer, ISyntacticParser syntacticParser, IClassificationTypeRegistryService registry)
        {
            buffer.Properties.AddProperty(typeof(ISyntacticParser), syntacticParser);

            _commentType = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
            _delimiterType = registry.GetClassificationType("RobotsTxt/Delimiter");
            _propertyNameType = registry.GetClassificationType("RobotsTxt/PropertyName");
            _propertyValueType = registry.GetClassificationType("RobotsTxt/PropertyValue");
        }
开发者ID:peterwie,项目名称:RobotsTxtLanguageService,代码行数:13,代码来源:RobotsTxtClassifier.cs


注:本文中的IClassificationTypeRegistryService.GetClassificationType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。