forked from NoahRic/MarkdownMode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContentType.cs
48 lines (40 loc) · 1.45 KB
/
ContentType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
namespace MarkdownMode
{
static class ContentType
{
public const string Name = "markdown";
[Export]
[Name(Name)]
[DisplayName("Markdown")]
[BaseDefinition("HTML")]
public static ContentTypeDefinition MarkdownModeContentType = null;
// Pre-RTM workaround:
// We need to also explicitly declare HTML, or else our declaration will cause HTML to break
[Export]
[Name("HTML")]
[BaseDefinition("code")]
public static ContentTypeDefinition HTMLContentType = null;
[Export]
[ContentType(Name)]
[FileExtension(".mkd")]
public static FileExtensionToContentTypeDefinition MkdFileExtension = null;
[Export]
[ContentType(Name)]
[FileExtension(".md")]
public static FileExtensionToContentTypeDefinition MdFileExtension = null;
[Export]
[ContentType(Name)]
[FileExtension(".mdown")]
public static FileExtensionToContentTypeDefinition MdownFileExtension = null;
[Export]
[ContentType(Name)]
[FileExtension(".mkdn")]
public static FileExtensionToContentTypeDefinition MkdnFileExtension = null;
[Export]
[ContentType(Name)]
[FileExtension(".markdown")]
public static FileExtensionToContentTypeDefinition MarkdownFileExtension = null;
}
}