added some development tools
[windows-sources.git] / developer / VSSDK / Samples / Ook_Language_Integration / C# / Classification / ClassificationFormat.cs
blobabc749ca9a8f095e1c43eafe1617962cfa68fe05
1 //***************************************************************************
2 //
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.
9 //
10 //***************************************************************************
12 using System.ComponentModel.Composition;
13 using System.Windows.Media;
14 using Microsoft.VisualStudio.Text.Classification;
15 using Microsoft.VisualStudio.Utilities;
17 namespace OokLanguage
19 #region Format definition
20 /// <summary>
21 /// Defines the editor format for the ookExclamation classification type. Text is colored BlueViolet
22 /// </summary>
23 [Export(typeof(EditorFormatDefinition))]
24 [ClassificationType(ClassificationTypeNames = "ook!")]
25 [Name("ook!")]
26 //this should be visible to the end user
27 [UserVisible(false)]
28 //set the priority to be after the default classifiers
29 [Order(Before = Priority.Default)]
30 internal sealed class OokE : ClassificationFormatDefinition
32 /// <summary>
33 /// Defines the visual format for the "exclamation" classification type
34 /// </summary>
35 public OokE()
37 DisplayName = "ook!"; //human readable version of the name
38 ForegroundColor = Colors.BlueViolet;
42 /// <summary>
43 /// Defines the editor format for the ookQuestion classification type. Text is colored Green
44 /// </summary>
45 [Export(typeof(EditorFormatDefinition))]
46 [ClassificationType(ClassificationTypeNames = "ook?")]
47 [Name("ook?")]
48 //this should be visible to the end user
49 [UserVisible(false)]
50 //set the priority to be after the default classifiers
51 [Order(Before = Priority.Default)]
52 internal sealed class OokQ : ClassificationFormatDefinition
54 /// <summary>
55 /// Defines the visual format for the "question" classification type
56 /// </summary>
57 public OokQ()
59 DisplayName = "ook?"; //human readable version of the name
60 ForegroundColor = Colors.Green;
64 /// <summary>
65 /// Defines the editor format for the ookPeriod classification type. Text is colored Orange
66 /// </summary>
67 [Export(typeof(EditorFormatDefinition))]
68 [ClassificationType(ClassificationTypeNames = "ook.")]
69 [Name("ook.")]
70 //this should be visible to the end user
71 [UserVisible(false)]
72 //set the priority to be after the default classifiers
73 [Order(Before = Priority.Default)]
74 internal sealed class OokP : ClassificationFormatDefinition
76 /// <summary>
77 /// Defines the visual format for the "period" classification type
78 /// </summary>
79 public OokP()
81 DisplayName = "ook."; //human readable version of the name
82 ForegroundColor = Colors.Orange;
85 #endregion //Format definition