public void TextViewCreated(IWpfTextView textView)
        {
            IClassificationType classification =
                ClassificationRegistry.GetClassificationType(Constants.COLUMN_HIGHLIGHT);
            IClassificationFormatMap map =
                //FormatMapService.GetClassificationFormatMap(FontsAndColorsCategories.TextEditorCategory);
                FormatMapService.GetClassificationFormatMap(textView);

            textView.Properties.GetOrCreateSingletonProperty(
                () => {
                return(new CurrentColumnAdornment(textView, map, classification, Settings));
            });
        }
示例#2
0
 public IClassificationFormatMap GetFormatMap(ITextView textView)
 {
     return(FormatMapService.GetClassificationFormatMap(textView));
 }