| 1 |
<!DOCTYPE html> |
| 2 |
<html><head> |
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 4 |
<title>test.properties</title> |
| 5 |
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (Java Properties) - Theme (Breeze Dark)"/> |
| 6 |
</head><body style="background-color:#232629;color:#cfcfc2"><pre> |
| 7 |
<span style="color:#7a7c7d;"># Java Properties Sample File</span> |
| 8 |
|
| 9 |
<span style="color:#7a7c7d;"># This is a commment</span> |
| 10 |
<span style="color:#7a7c7d;">! This is also a comment</span> |
| 11 |
<span style="color:#27ae60;"> </span><span style="color:#7a7c7d;"># comment</span> |
| 12 |
<span style="color:#27ae60;"> </span><span style="color:#7a7c7d;">! comment</span> |
| 13 |
|
| 14 |
<span style="color:#7a7c7d;"># keys and values can be separated by '=', ':' or by a series of spaces:</span> |
| 15 |
|
| 16 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 17 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">:</span><span style="color:#f44f4f;"> value</span> |
| 18 |
<span style="color:#27ae60;">key </span><span style="color:#f44f4f;">value</span> |
| 19 |
|
| 20 |
<span style="color:#7a7c7d;"># spaces, '=', or ':' can be used in the key by escaping them with a backslash:</span> |
| 21 |
|
| 22 |
<span style="color:#27ae60;">key\:continued </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 23 |
<span style="color:#27ae60;">key\=continued </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 24 |
<span style="color:#27ae60;">key\ continued </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 25 |
|
| 26 |
<span style="color:#7a7c7d;"># the key starts with the first non blank character on the line:</span> |
| 27 |
|
| 28 |
<span style="color:#27ae60;"> key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 29 |
<span style="color:#27ae60;"> </span> |
| 30 |
<span style="color:#7a7c7d;"># there can be an arbitrary amount of spaces between the key, the value, and the ':' or '=', if present:</span> |
| 31 |
|
| 32 |
<span style="color:#27ae60;">key</span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;">value</span> |
| 33 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 34 |
|
| 35 |
<span style="color:#27ae60;">key</span><span style="color:#27aeae;">:</span><span style="color:#f44f4f;">value</span> |
| 36 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">:</span><span style="color:#f44f4f;"> value</span> |
| 37 |
|
| 38 |
<span style="color:#27ae60;">key </span><span style="color:#f44f4f;">value</span> |
| 39 |
<span style="color:#27ae60;">key </span><span style="color:#f44f4f;">value</span> |
| 40 |
|
| 41 |
<span style="color:#7a7c7d;"># values can be continued on another line by escaping the line end character with a backslash:</span> |
| 42 |
|
| 43 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value \</span> |
| 44 |
<span style="color:#f44f4f;"> value continued</span> |
| 45 |
<span style="color:#27ae60;"> </span> |
| 46 |
<span style="color:#7a7c7d;"># This works also over more than one line:</span> |
| 47 |
|
| 48 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value\</span> |
| 49 |
<span style="color:#f44f4f;"> value continued 1\</span> |
| 50 |
<span style="color:#f44f4f;"> value continued 2\</span> |
| 51 |
<span style="color:#f44f4f;"> value continued 3</span> |
| 52 |
<span style="color:#27ae60;"> </span> |
| 53 |
<span style="color:#7a7c7d;"># But if the line ends with an even number of backslashes, the value is not continued:</span> |
| 54 |
|
| 55 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value\\</span> |
| 56 |
<span style="color:#27ae60;">newkey </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 57 |
|
| 58 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value\\\\</span> |
| 59 |
<span style="color:#27ae60;">newkey </span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 60 |
|
| 61 |
<span style="color:#7a7c7d;"># both key and value can be ommitted, in which case either the key or the value or both equal the empty string:</span> |
| 62 |
|
| 63 |
<span style="color:#27ae60;">key </span><span style="color:#27aeae;">=</span> |
| 64 |
<span style="color:#27ae60;">key</span> |
| 65 |
<span style="color:#27aeae;">=</span><span style="color:#f44f4f;"> value</span> |
| 66 |
|
| 67 |
<span style="color:#27aeae;">=</span> |
| 68 |
<span style="color:#27aeae;">:</span> |
| 69 |
|
| 70 |
</pre></body></html> |