-
Notifications
You must be signed in to change notification settings - Fork 11
Config Format
This document is a work progress of discussions with Strimo and a bit of experimenting.
Each key follows a simple rule.
The element is surrounded by single quotes and then square brackets.
For example:
['Key']
A value is defined by being in quotations and then terminated with a semi-colon. However, a value maybe substituted to start a new block off.
Single quotes are most commonly used for simple alphanumeric strings.
For example:
['Key'] = 'Value';
Single quotes are most commonly used for more complex alphanumeric strings or strings which contain single quotes. Doubles quotes is able to handle backslashes, thus allowing a list of special characters to be used.
Available characters:
- \" = Escaped double quote
- \t = Tab
- \n = New Line
- \r = Carriage Return
- \x = Hex - \x is most likely followed by an 8bit integer
For example:
['Key'] = "Bob says, 'Hello World'";
['Key'] = "Tabbed\t space";
If the array contains multiple dimensions blocks can be created. Blocks must have a parent key and be opened with a curly bracket, and closed with a curly bracket followed by a semi-colon.
For Example
['Languages'] = {
['EN'] = 'English';
['DE'] = 'Deutisch';
['FR'] = 'Francais';
};
!Config Format