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