File indexing completed on 2025-02-02 03:54:47
0001 <!DOCTYPE html> 0002 <html><head> 0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 0004 <title>test.properties</title> 0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Java Properties) - Theme (Breeze Light)"/> 0006 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre> 0007 <span style="color:#898887"># Java Properties Sample File</span> 0008 0009 <span style="color:#898887"># This is a commment</span> 0010 <span style="color:#898887">! This is also a comment</span> 0011 <span style="color:#006e28"> </span><span style="color:#898887"># comment</span> 0012 <span style="color:#006e28"> </span><span style="color:#898887">! comment</span> 0013 0014 <span style="color:#898887"># keys and values can be separated by '=', ':' or by a series of spaces:</span> 0015 0016 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0017 <span style="color:#006e28">key </span><span style="color:#0057ae">:</span><span style="color:#bf0303"> value</span> 0018 <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> 0019 0020 <span style="color:#898887"># spaces, '=', or ':' can be used in the key by escaping them with a backslash:</span> 0021 0022 <span style="color:#006e28">key\:continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0023 <span style="color:#006e28">key\=continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0024 <span style="color:#006e28">key\ continued </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0025 0026 <span style="color:#898887"># the key starts with the first non blank character on the line:</span> 0027 0028 <span style="color:#006e28"> key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0029 <span style="color:#006e28"> </span> 0030 <span style="color:#898887"># there can be an arbitrary amount of spaces between the key, the value, and the ':' or '=', if present:</span> 0031 0032 <span style="color:#006e28">key</span><span style="color:#0057ae">=</span><span style="color:#bf0303">value</span> 0033 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0034 0035 <span style="color:#006e28">key</span><span style="color:#0057ae">:</span><span style="color:#bf0303">value</span> 0036 <span style="color:#006e28">key </span><span style="color:#0057ae">:</span><span style="color:#bf0303"> value</span> 0037 0038 <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> 0039 <span style="color:#006e28">key </span><span style="color:#bf0303">value</span> 0040 0041 <span style="color:#898887"># values can be continued on another line by escaping the line end character with a backslash:</span> 0042 0043 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value \</span> 0044 <span style="color:#bf0303"> value continued</span> 0045 <span style="color:#006e28"> </span> 0046 <span style="color:#898887"># This works also over more than one line:</span> 0047 0048 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\</span> 0049 <span style="color:#bf0303"> value continued 1\</span> 0050 <span style="color:#bf0303"> value continued 2\</span> 0051 <span style="color:#bf0303"> value continued 3</span> 0052 <span style="color:#006e28"> </span> 0053 <span style="color:#898887"># But if the line ends with an even number of backslashes, the value is not continued:</span> 0054 0055 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\\</span> 0056 <span style="color:#006e28">newkey </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0057 0058 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value\\\\</span> 0059 <span style="color:#006e28">newkey </span><span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0060 0061 <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> 0062 0063 <span style="color:#006e28">key </span><span style="color:#0057ae">=</span> 0064 <span style="color:#006e28">key</span> 0065 <span style="color:#0057ae">=</span><span style="color:#bf0303"> value</span> 0066 0067 <span style="color:#0057ae">=</span> 0068 <span style="color:#0057ae">:</span> 0069 0070 </pre></body></html>