The Format of Properties Files
From Documentation
Revision as of 07:57, 28 March 2011 by Tomyeh (talk | contribs) (→Specify a Value with Multiple Lines)
In this section, we discuss the content of a properties file, such as i3-label.properties.
A properties file is a simple text file. The file contains a list of key=value pairs, such as
# This is the default LabelsBundle.properties file
s1=computer
s2=disk
s3=monitor
s4=keyboard
The default encoding of a properties file is assumed to be UTF-8. If you want to use a different encoding, please refer to the Use Encoding Other Than UTF-8 section.
Specify a Value with Multiple Lines
By default, a property is the text specified right after the equal sign. If the property's value has multiple lines, you could use the following format:
key={
line 1
line 2
}
Notice that the curly braces must be followed by a line break immediately, and the right brace (}) must be the only character in the line.
Specify Nested Keys
Specify a Comment
You could put a comment line by starting with the sharp sign (#), such as
#This is a comment line that will be ignored when loaded
Use EL Expressions
Use Encoding Other Than UTF-8
Version History
Version | Date | Content |
---|---|---|