コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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();
 }
コード例 #4
0
ファイル: example-100.cs プロジェクト: MAPJe71/Languages
        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");
        }