Skip to content

zacala1/MarronConfig

Repository files navigation

MarronConfig

INI configuration parser and writer for .NET with rich features like comments, arrays, and type conversion support.

Features

  • Flexible comment support
    • Pre-section/property comments
    • Inline comments
    • Multiple comment prefix characters (;, #)
  • Section and property management
  • Array values with type conversion
  • Case-insensitive key lookup
  • Section merging with configurable policies
  • Built-in Windows Forms editor
    • Visual INI file editing
    • Comment management interface
    • Direct property manipulation
    • Real-time preview

GUI Editor

MarronConfig includes a Windows Forms-based editor for visual INI file management. Features:

  • List view for sections and properties
  • Comment editing interface
  • Property value editor
  • File save/load functionality

image

Usage

// Create document
var doc = new Document();

// Add section with comments
var section = new Section("Database");
section.PreComments.Add(new Comment("Database configuration"));
section.Comment = new Comment("Main database settings");
doc.AddSection(section);

// Add property with comments
var prop = new Property("ConnectionString", "Server=localhost;");
prop.PreComments.Add(new Comment("Connection string for database"));
prop.Comment = new Comment("Local development server");
section.AddProperty(prop);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages