| 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 Light)"/> |
| 6 | </head><body style="background-color:#ffffff;color:#1f1c1b"><pre> |
| 7 | <span style="color:#898887"># Java Properties Sample File</span> |
| 8 | |
| 9 | <span style="color:#898887"># This is a commment</span> |
| 10 | <span style="color:#898887">! This is also a comment</span> |
| 11 | <span style="color:#006e28"> </span><span style="color:#898887"># comment</span> |
| 12 | <span style="color:#006e28"> </span><span style="color:#898887">! comment</span> |
| 13 | |
| 14 | <span style="color:#898887"># keys and values can be separated by '=', ':' or by a series of spaces:</span> |
| 15 | |
| 16 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 17 | <span style="color:#006e28">key </span><span style="color:#0057ae">:</span><span style="color:#bf0303"> value</span> |
| 18 | <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> |
| 19 | |
| 20 | <span style="color:#898887"># spaces, '=', or ':' can be used in the key by escaping them with a backslash:</span> |
| 21 | |
| 22 | <span style="color:#006e28">key\:continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 23 | <span style="color:#006e28">key\=continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 24 | <span style="color:#006e28">key\ continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 25 | |
| 26 | <span style="color:#898887"># the key starts with the first non blank character on the line:</span> |
| 27 | |
| 28 | <span style="color:#006e28"> key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 29 | <span style="color:#006e28"> </span> |
| 30 | <span style="color:#898887"># there can be an arbitrary amount of spaces between the key, the value, and the ':' or '=', if present:</span> |
| 31 | |
| 32 | <span style="color:#006e28">key</span><span style="color:#0057ae">=</span><span style="color:#bf0303">value</span> |
| 33 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 34 | |
| 35 | <span style="color:#006e28">key</span><span style="color:#0057ae">:</span><span style="color:#bf0303">value</span> |
| 36 | <span style="color:#006e28">key </span><span style="color:#0057ae">:</span><span style="color:#bf0303"> value</span> |
| 37 | |
| 38 | <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> |
| 39 | <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> |
| 40 | |
| 41 | <span style="color:#898887"># values can be continued on another line by escaping the line end character with a backslash:</span> |
| 42 | |
| 43 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value \</span> |
| 44 | <span style="color:#bf0303"> value continued</span> |
| 45 | <span style="color:#006e28"> </span> |
| 46 | <span style="color:#898887"># This works also over more than one line:</span> |
| 47 | |
| 48 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\</span> |
| 49 | <span style="color:#bf0303"> value continued 1\</span> |
| 50 | <span style="color:#bf0303"> value continued 2\</span> |
| 51 | <span style="color:#bf0303"> value continued 3</span> |
| 52 | <span style="color:#006e28"> </span> |
| 53 | <span style="color:#898887"># But if the line ends with an even number of backslashes, the value is not continued:</span> |
| 54 | |
| 55 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\\</span> |
| 56 | <span style="color:#006e28">newkey </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 57 | |
| 58 | <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\\\\</span> |
| 59 | <span style="color:#006e28">newkey </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 60 | |
| 61 | <span style="color:#898887"># 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:#006e28">key </span><span style="color:#0057ae">=</span> |
| 64 | <span style="color:#006e28">key</span> |
| 65 | <span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> |
| 66 | |
| 67 | <span style="color:#0057ae">=</span> |
| 68 | <span style="color:#0057ae">:</span> |
| 69 | |
| 70 | </pre></body></html> |