...
1# You are reading a comment in ".properties" file.
2! The exclamation mark can also be used for comments.
3# Lines with "properties" contain a key and a value separated by a delimiting character.
4# There are 3 delimiting characters: '=' (equal), ':' (colon) and whitespace (space, \t and \f).
5website = https://en.wikipedia.org/
6language : English
7# White space that appears between the key, the value and the delimiter is ignored.
8# This means that the following are equivalent (other than for readability).
9hello=hello
10hello = hello
11topic .properties files
12# A word on a line will just create a key with no value.
13empty
14# Keys with the same name will be overwritten by the key that is the furthest in a file.
15# For example the final value for "duplicateKey" will be "second".
16duplicateKey = first
17duplicateKey = second
18# Adding a \ at the end of a line means that the value continues to the next line.
19towLines = This line \
20 continues
21threeLines: This value \
22 has even \
23 three lines
24# If you need to add newlines and carriage returns, they need to be escaped using \n and \r respectively.
25# You can also optionally escape tabs with \t for readability purposes.
26valueWithEscapes = This is a newline\n and a carriage return\r and a tab\t.
27# You can also use Unicode escape characters (maximum of four hexadecimal digits).
28# In the following example, the value for "encodedHelloInJapanese" is "こんにちは".
29encodedHelloInJapanese = \u3053\u3093\u306b\u3061\u306f
30# But with more modern file encodings like UTF-8, you can directly use supported characters.
31helloInJapanese = こんにちは
32 # Comments and keys can have leading whitespace
33 foo = I have leading whitespace
34# Comments and keys can have trailing whitespace as part of the comment
35bar = I have trailing whitespace as part of the value
View as plain text