private static Color deletedMarkerColour = Color.Red; // Color.FromArgb(230, 176, 165); // Red public static SyntaxLanguage GetSyntaxLanguageForFileInformation(IFileInformation fi) { if (fi.TemplateLanguage.HasValue) { return(SyntaxEditorHelper.GetDynamicLanguage(fi.TemplateLanguage.Value)); } return(SyntaxEditorHelper.GetDynamicLanguage(TemplateContentLanguage.PlainText)); }
public void Reset(IProjectFile <string> file, TemplateContentLanguage language) { if (file.HasContents == false) { throw new ArgumentException("file must have contents"); } this.file = file; editor.Text = file.GetContents(); editor.Document.Language = SyntaxEditorHelper.GetDynamicLanguage(language); errorTreeList.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; Reparse(); }