Cosmos/source2/VSIP/Cosmos.VS.XSharp/Formatter/Cosmos.VS.XSharpFormat.cs
kudzu_cp 5bd78af23d
2012-06-07 20:36:58 +00:00

22 lines
938 B
C#

using System.ComponentModel.Composition;
using System.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
namespace Cosmos.VS.XSharp {
/// Defines an editor format for the XSharp type that has a purple background
/// and is underlined.
[Export(typeof(EditorFormatDefinition))]
[ClassificationType(ClassificationTypeNames = "XSharp")]
[Name("XSharp")]
[UserVisible(true)]
[Order(Before = Priority.Default)] //set the priority to be after the default classifiers
internal sealed class XSharpFormat : ClassificationFormatDefinition {
/// Defines the visual format for the "Cosmos.VS.XSharp" classification type
public XSharpFormat() {
this.DisplayName = "XSharp"; //human readable version of the name
this.BackgroundColor = Colors.BlueViolet;
this.TextDecorations = System.Windows.TextDecorations.Underline;
}
}
}