/// <summary> /// Loads the syntax and refreshes scintilla settings. /// </summary> public static void LoadConfiguration() { SciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly()); SciConfig = (Scintilla)SciConfigUtil.LoadConfiguration(typeof(Scintilla), FileNameHelper.Scintilla); ScintillaControl.Configuration = SciConfig; MainForm.Instance.ApplyAllSettings(); }
/// <summary> /// Loads the syntax and refreshes scintilla settings. /// </summary> public static void LoadConfiguration() { SciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly()); String[] configFiles = Directory.GetFiles(Path.Combine(PathHelper.SettingDir, "Languages"), "*.xml"); SciConfig = (Scintilla)SciConfigUtil.LoadConfiguration(configFiles); ScintillaControl.Configuration = SciConfig; MainForm.Instance.ApplyAllSettings(); }
/// <summary> /// Loads the syntax and refreshes scintilla settings. /// </summary> public static void LoadConfiguration() { sciConfigUtil = new ConfigurationUtility(Assembly.GetExecutingAssembly()); String[] configFiles = Directory.GetFiles(Path.Combine(PathHelper.SettingDir, "Languages"), "*.xml"); sciConfig = (Scintilla)sciConfigUtil.LoadConfiguration(configFiles); ScintillaControl.Configuration = sciConfig; ConfigurationLoaded?.Invoke(); }
public void ReloadConfig() { // create the configuration utility. // you need to pass a type that exists int the assembly where the class that you use as // a base node for configuration. ConfigurationUtility cu = new ConfigurationUtility(GetType().Module.Assembly); // set the configuration to scintilla config = (Scintilla)cu.LoadConfiguration(typeof(Scintilla), "settings\\ScintillaNET.xml"); }