1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
namespace ICSharpCode.AvalonEdit.Highlighting
11
static readonly string Prefix = typeof(Resources).FullName + ".";
13
public static Stream OpenStream(string name)
15
Stream s = typeof(Resources).Assembly.GetManifestResourceStream(Prefix + name);
17
throw new FileNotFoundException("The resource file '" + name + "' was not found.");
21
internal static void RegisterBuiltInHighlightings(HighlightingManager.DefaultHighlightingManager hlm)
23
hlm.RegisterHighlighting("XmlDoc", null, "XmlDoc.xshd");
24
hlm.RegisterHighlighting("C#", new[] { ".cs" }, "CSharp-Mode.xshd");
26
hlm.RegisterHighlighting("JavaScript", new[] { ".js" }, "JavaScript-Mode.xshd");
27
hlm.RegisterHighlighting("HTML", new[] { ".htm", ".html" }, "HTML-Mode.xshd");
28
hlm.RegisterHighlighting("ASP/XHTML", new[] { ".asp", ".aspx", ".asax", ".asmx", ".ascx", ".master" }, "ASPX.xshd");
30
hlm.RegisterHighlighting("Boo", new[] { ".boo" }, "Boo.xshd");
31
hlm.RegisterHighlighting("Coco", new[] { ".atg" }, "Coco-Mode.xshd");
32
hlm.RegisterHighlighting("CSS", new[] { ".css" }, "CSS-Mode.xshd");
33
hlm.RegisterHighlighting("C++", new[] { ".c", ".h", ".cc", ".cpp" , ".hpp" }, "CPP-Mode.xshd");
34
hlm.RegisterHighlighting("Java", new[] { ".java" }, "Java-Mode.xshd");
35
hlm.RegisterHighlighting("Patch", new[] { ".patch", ".diff" }, "Patch-Mode.xshd");
36
hlm.RegisterHighlighting("PHP", new[] { ".php" }, "PHP-Mode.xshd");
37
hlm.RegisterHighlighting("TeX", new[] { ".tex" }, "Tex-Mode.xshd");
38
hlm.RegisterHighlighting("VBNET", new[] { ".vb" }, "VBNET-Mode.xshd");
39
hlm.RegisterHighlighting("XML", (".xml;.xsl;.xslt;.xsd;.manifest;.config;.addin;" +
40
".xshd;.wxs;.wxi;.wxl;.proj;.csproj;.vbproj;.ilproj;" +
41
".booproj;.build;.xfrm;.targets;.xaml;.xpt;" +
42
".xft;.map;.wsdl;.disco").Split(';'),