1
//***************************************************************************
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // This code is licensed under the Visual Studio SDK license terms.
5 // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
10 //***************************************************************************
12 using System
.ComponentModel
.Composition
;
13 using System
.Windows
.Media
;
14 using Microsoft
.VisualStudio
.Text
.Classification
;
15 using Microsoft
.VisualStudio
.Utilities
;
19 #region Format definition
21 /// Defines the editor format for the ookExclamation classification type. Text is colored BlueViolet
23 [Export(typeof(EditorFormatDefinition
))]
24 [ClassificationType(ClassificationTypeNames
= "ook!")]
26 //this should be visible to the end user
28 //set the priority to be after the default classifiers
29 [Order(Before
= Priority
.Default
)]
30 internal sealed class OokE
: ClassificationFormatDefinition
33 /// Defines the visual format for the "exclamation" classification type
37 DisplayName
= "ook!"; //human readable version of the name
38 ForegroundColor
= Colors
.BlueViolet
;
43 /// Defines the editor format for the ookQuestion classification type. Text is colored Green
45 [Export(typeof(EditorFormatDefinition
))]
46 [ClassificationType(ClassificationTypeNames
= "ook?")]
48 //this should be visible to the end user
50 //set the priority to be after the default classifiers
51 [Order(Before
= Priority
.Default
)]
52 internal sealed class OokQ
: ClassificationFormatDefinition
55 /// Defines the visual format for the "question" classification type
59 DisplayName
= "ook?"; //human readable version of the name
60 ForegroundColor
= Colors
.Green
;
65 /// Defines the editor format for the ookPeriod classification type. Text is colored Orange
67 [Export(typeof(EditorFormatDefinition
))]
68 [ClassificationType(ClassificationTypeNames
= "ook.")]
70 //this should be visible to the end user
72 //set the priority to be after the default classifiers
73 [Order(Before
= Priority
.Default
)]
74 internal sealed class OokP
: ClassificationFormatDefinition
77 /// Defines the visual format for the "period" classification type
81 DisplayName
= "ook."; //human readable version of the name
82 ForegroundColor
= Colors
.Orange
;
85 #endregion //Format definition