File indexing completed on 2025-02-02 03:54:45
0001 <!DOCTYPE html> 0002 <html><head> 0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 0004 <title>highlight.t2t</title> 0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (txt2tags) - Theme (Breeze Light)"/> 0006 </head><body style="background-color:#ffffff;color:#1f1c1b"><pre> 0007 <span style="color:#ca60ca">header-line1:</span><span style="color:#898887"> document title</span> 0008 <span style="color:#ca60ca">header-line2:</span><span style="color:#898887"> author name, email</span> 0009 <span style="color:#ca60ca">header-line3:</span><span style="color:#898887"> date, version</span> 0010 0011 txt2tags sample 0012 0013 <span style="color:#898887">% Comment Line </span><span style="color:#e85848;background-color:#451e1a;font-weight:bold">ALERT</span><span style="color:#898887"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">TODO</span><span style="color:#898887"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold">FIXME</span> 0014 0015 <span style="color:#898887">%%%</span> 0016 <span style="color:#898887">Comment Block</span> 0017 <span style="color:#898887">%%%</span> 0018 0019 <span style="color:#898887">%!--includeconf: config.t2t</span> 0020 <span style="color:#898887">% disabled here because there is no external file</span> 0021 <span style="color:#006e28">%!preproc:</span><span style="color:#898887"> 'JUST A TEST' ' '</span> 0022 <span style="color:#006e28">%!postproc:</span><span style="color:#898887"> '(?i)(<body)' '\1 id="shots"'</span> 0023 <span style="color:#006e28">%!postproc:</span><span style="color:#898887"> '(?i)(</title>)' ' shots\1'</span> 0024 0025 <span style="color:#898887">%!--include: menu.t2t</span> 0026 0027 <span style="color:#644a9b;font-weight:bold">= Title 1 =</span> 0028 0029 0030 <span style="color:#644a9b;font-weight:bold">== My Subtitle 1 ==[some definition]</span> 0031 0032 Some examples: 0033 0034 <span style="color:#ff5500;font-weight:bold">- </span>A paragraph with <span style="font-weight:bold">**bold**</span>, <span style="font-style:italic">//italic//</span> and <span style="text-decoration:line-through">--strike--</span>. 0035 <span style="color:#ff5500;font-weight:bold">- </span>You can even <span style="text-decoration:underline">__underline your docs__</span>! 0036 0037 <span style="color:#ff5500;font-weight:bold">- </span>And use <span style="font-weight:bold;font-style:italic">**//bold and italic//**</span> 0038 <span style="color:#ff5500;font-weight:bold">- </span>or <span style="font-weight:bold;font-style:italic">//**italic and bold**//</span> 0039 0040 Here is a nice pic: <span style="color:#006e28">[img/t2tpowered.png]</span>. 0041 0042 <span style="color:#ff5500;font-weight:bold">- </span>And a <span style="color:#006e28">[link to a cool website </span><span style="color:#006e28;text-decoration:underline">http://txt2tags.sf.net</span><span style="color:#006e28">]</span>! 0043 0044 <span style="color:#ff5500;font-weight:bold">- </span>A table : 0045 0046 <span style="color:#bf0303"> || Name | Age | Gender |</span> 0047 <span style="color:#bf0303"> | John | 33 | Male |</span> 0048 <span style="color:#bf0303"> | Mary | 19 | Female |</span> 0049 0050 0051 <span style="color:#b08000">``` A verbatim line</span> 0052 0053 And it's working for <span style="color:#b08000">``special code``</span> like this. 0054 0055 <span style="color:#b08000">```</span> 0056 <span style="color:#b08000">A verbatim block</span> 0057 <span style="color:#b08000">```</span> 0058 0059 Raw strings: 0060 0061 <span style="color:#e31616">""" A raw line</span> 0062 0063 <span style="color:#e31616">"""</span> 0064 <span style="color:#e31616">A raw block</span> 0065 <span style="color:#e31616">"""</span> 0066 0067 Tagged strings: 0068 0069 <span style="color:#e31616">''' A tagged line</span> 0070 0071 <span style="color:#e31616">'''</span> 0072 <span style="color:#e31616">A tagged block</span> 0073 <span style="color:#e31616">'''</span> 0074 0075 And remember, 0076 <span style="color:#0057ae"> A TAB in front of the line does a quotation.</span> 0077 <span style="color:#0057ae"> More TABs, more depth (if allowed).</span> 0078 0079 Horizontal lines: 0080 <span style="font-weight:bold">--------------------------------------------------------</span> 0081 ^ thin or large v 0082 <span style="font-weight:bold">========================================================</span> 0083 0084 <span style="color:#644a9b;font-weight:bold">== My Subtitle 2 ==</span> 0085 0086 0087 Lorem ipsum etc 0088 Lorem ipsum etc Lorem ipsum etc 0089 0090 <span style="color:#ff5500;font-weight:bold">- </span>Test d'écriture avec des accents à la française. Ça marche ou pas ? 0091 0092 <span style="color:#644a9b;font-weight:bold">== My Subtitle 3 ==</span> 0093 0094 0095 Lorem ipsum etc 0096 Lorem ipsum etc 0097 0098 Here is a direct link: <span style="text-decoration:underline">http://kde.org</span> 0099 0100 0101 <span style="color:#ff5500;font-weight:bold">- </span>Another boring part... 0102 0103 0104 0105 <span style="color:#644a9b;font-weight:bold">=== My Subsubtitle 1 ===</span> 0106 0107 <span style="font-style:italic">//It's a level 3 header//</span> 0108 0109 <span style="color:#ff5500;font-weight:bold">- </span>list 1 0110 <span style="color:#ff5500;font-weight:bold">- </span>list 2 0111 <span style="color:#ff5500;font-weight:bold"> - </span>list 2b 0112 <span style="color:#ff5500;font-weight:bold">- </span>list 3 0113 0114 0115 <span style="color:#644a9b;font-weight:bold">=== My Subsubtitle 2 ===</span> 0116 0117 <span style="font-style:italic">//It's another level 3 header//</span> 0118 0119 <span style="color:#ff5500;font-weight:bold">+ </span>ordered list 1 0120 <span style="color:#ff5500;font-weight:bold">+ </span>list 2 0121 <span style="color:#ff5500;font-weight:bold"> + </span>list 2B 0122 <span style="color:#ff5500;font-weight:bold"> + </span>list 2C 0123 <span style="color:#ff5500;font-weight:bold">+ </span>list 3 0124 0125 0126 <span style="color:#644a9b;font-weight:bold">== My Subtitle 4 ==</span> 0127 0128 The handy <span style="color:#b08000">``%%date``</span> macro expands to the current date. 0129 0130 So today is <span style="color:#0057ae">%%date</span> on the ISO <span style="color:#b08000">``YYYYMMDD``</span> format. 0131 0132 You can also specify the date format with the %? flags, 0133 as <span style="color:#b08000">``%%date(%m-%d-%Y)``</span> which gives: <span style="color:#0057ae">%%date(%m-%d-%Y)</span>. 0134 0135 <span style="color:#644a9b;font-weight:bold">= Images =</span> 0136 0137 The image mark is as simple as it can be: <span style="color:#b08000">``[filename]``</span>. 0138 0139 <span style="color:#006e28">[img/photo.jpg]</span> 0140 0141 And with some targets the image is linkable : 0142 0143 <span style="color:#006e28">[[img/photo.jpg] </span><span style="color:#006e28;text-decoration:underline">http://www.txt2tags.org</span><span style="color:#006e28">]</span> 0144 0145 <span style="color:#644a9b;font-weight:bold">= Tables =</span> 0146 0147 Use pipes to compose table rows and cells. 0148 Double pipe at the line beginning starts a heading row. 0149 Natural spaces specify each cell alignment. 0150 0151 <span style="color:#bf0303"> | cell 1.1 | cell 1.2 | cell 1.3 |</span> 0152 <span style="color:#bf0303"> | cell 2.1 | cell 2.2 | cell 2.3 |</span> 0153 <span style="color:#bf0303"> | cell 3.1 | cell 3.2 | cell 3.3 |</span> 0154 0155 <span style="color:#bf0303">|| heading 1 | heading 2 | heading 3 |</span> 0156 <span style="color:#bf0303"> | cell 1.1 | cell 1.2 | cell 1.3 |</span> 0157 <span style="color:#bf0303"> | cell 2.1 | cell 2.2 | cell 2.3 |</span> 0158 0159 <span style="color:#bf0303"> |_ heading 1 | cell 1.1 | cell 1.2 |</span> 0160 <span style="color:#bf0303"> | heading 2 | cell 2.1 | cell 2.2 |</span> 0161 <span style="color:#bf0303"> | heading 3 | cell 3.1 | cell 3.2 |</span> 0162 0163 <span style="color:#bf0303">|/ heading | heading 1 | heading 2 |</span> 0164 <span style="color:#bf0303"> | heading 1 | cell 1.1 | cell 1.2 |</span> 0165 <span style="color:#bf0303"> | heading 2 | cell 2.1 | cell 2.2 |</span> 0166 0167 Without the last pipe, no border: 0168 0169 <span style="color:#bf0303"> | cell 1.1 | cell 1.2 | cell 1.3</span> 0170 <span style="color:#bf0303"> | cell 2.1 | cell 2.2 | cell 2.3</span> 0171 <span style="color:#bf0303"> | cell 3.1 | cell 3.2 | cell 3.3</span> 0172 0173 <span style="color:#bf0303">|| heading 1 | heading 2 | heading 3</span> 0174 <span style="color:#bf0303"> | cell 1.1 | cell 1.2 | cell 1.3</span> 0175 <span style="color:#bf0303"> | cell 2.1 | cell 2.2 | cell 2.3</span> 0176 0177 <span style="color:#bf0303"> |_ heading 1 | cell 1.1 | cell 1.2</span> 0178 <span style="color:#bf0303"> | heading 2 | cell 2.1 | cell 2.2</span> 0179 <span style="color:#bf0303"> | heading 3 | cell 3.1 | cell 3.2</span> 0180 0181 <span style="color:#bf0303">|/ heading | heading 1 | heading 2</span> 0182 <span style="color:#bf0303"> | heading 1 | cell 1.1 | cell 1.2</span> 0183 <span style="color:#bf0303"> | heading 2 | cell 2.1 | cell 2.2</span> 0184 0185 0186 <span style="color:#644a9b;font-weight:bold">= Other Title =</span> 0187 0188 nothing to say here... 0189 </pre></body></html>