public static string GetColorDefinitionFileName() { var configJson = ConfigJson.Load(); var file = Path.Combine(ConfigJson.GetExtensionPath(), configJson.GetColorDefinitionFileName()); return(file); }
public static void OpenIntellisenseDefinitionFileInTextEditor() { var configJson = ConfigJson.Load(); var file = Path.Combine(ConfigJson.GetExtensionPath(), configJson.GetIntellisenseDefinitionFileName()); TextHighlighterConfigApi.OpenFileInVS(file); }
public static void SetBackGroundColorDefinition(string theme) { ConfigJson configJson = ConfigJson.Load(); configJson.BackGroundColorTheme = theme; configJson.Save(); }
public void TestPortableConfig() { var setting = new ConfigJson <TestSettings>(ConfigType.Executeable, "ConfigTest", "ConfigTest.json"); setting.Load(); setting.Configuration.BoolParameter = true; setting.Configuration.StringArrayParam = new[] { "eins", "zwei", "drei" }; setting.Configuration.StringParameter = "stringParam"; setting.Save(); }
public static void SetJsonRelaxModeAndClosingChar(bool relaxMode, bool insertClosingChar, string iniFileCommentChars) { ConfigJson configJson = ConfigJson.Load(); configJson.JsonRelaxMode = relaxMode; configJson.JsonInsertClosingChar = insertClosingChar; if (iniFileCommentChars != null) { configJson.IniFileCommentChars = iniFileCommentChars; } configJson.Save(); }
public static string GetIniFileCommentChars() { var configJson = ConfigJson.Load(); return(configJson.IniFileCommentChars); }
public static bool GetInsertClosingCharacter() { var configJson = ConfigJson.Load(); return(configJson.JsonInsertClosingChar); }
public static bool GetRelaxMode() { var configJson = ConfigJson.Load(); return(configJson.JsonRelaxMode); }
public static string GetBackGroundColorTheme() { var configJson = ConfigJson.Load(); return(configJson.BackGroundColorTheme); }