Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/highlight.t2t.fold
1 | txt2tags sample | 1 | txt2tags sample | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | 3 | | |||
4 | %!--includeconf: config.t2t | 4 | %!--includeconf: config.t2t | ||
5 | % disabled here because there is no external file | 5 | % disabled here because there is no external file | ||
6 | %!preproc: 'JUST A TEST' ' ' | 6 | %!preproc: 'JUST A TEST' ' ' | ||
7 | %!postproc: '(?i)(<body)' '\1 id="shots"' | 7 | %!postproc: '(?i)(<body)' '\1 id="shots"' | ||
8 | %!postproc: '(?i)(</title>)' ' shots\1' | 8 | %!postproc: '(?i)(</title>)' ' shots\1' | ||
9 | 9 | | |||
10 | %!--include: menu.t2t | 10 | %!--include: menu.t2t | ||
11 | 11 | | |||
12 | <endfold id='1'>= Title 1 =</endfold id='1'><beginfold id='1'>= Title 1 =</beginfold id='1'> | 12 | <endfold id='1'></endfold id='1'><beginfold id='1'>= Title 1 =</beginfold id='1'> | ||
13 | 13 | | |||
14 | 14 | | |||
15 | <endfold id='1'>== My Subtitle 1 ==[some definition]</endfold id='1'><beginfold id='1'>== My Subtitle 1 ==[some definition]</beginfold id='1'> | 15 | <endfold id='1'></endfold id='1'><beginfold id='1'>== My Subtitle 1 ==[some definition]</beginfold id='1'> | ||
16 | 16 | | |||
17 | Some examples: | 17 | Some examples: | ||
18 | 18 | | |||
19 | - A paragraph with **bold**, //italic// and --strike--. | 19 | - A paragraph with **bold**, //italic// and --strike--. | ||
20 | - You can even __underline your docs__! | 20 | - You can even __underline your docs__! | ||
21 | 21 | | |||
22 | - And use **//bold and italic//** | 22 | - And use **//bold and italic//** | ||
23 | - or //**italic and bold**// | 23 | - or //**italic and bold**// | ||
Show All 13 Lines | |||||
37 | 37 | | |||
38 | And it's working for ``special code`` like this. | 38 | And it's working for ``special code`` like this. | ||
39 | 39 | | |||
40 | ``` | 40 | ``` | ||
41 | Unfortunately I can't color this verbatim content yet. | 41 | Unfortunately I can't color this verbatim content yet. | ||
42 | ``` | 42 | ``` | ||
43 | 43 | | |||
44 | 44 | | |||
45 | <endfold id='1'>== My Subtitle 2 ==</endfold id='1'><beginfold id='1'>== My Subtitle 2 ==</beginfold id='1'> | 45 | <endfold id='1'></endfold id='1'><beginfold id='1'>== My Subtitle 2 ==</beginfold id='1'> | ||
46 | 46 | | |||
47 | 47 | | |||
48 | Lorem ipsum etc | 48 | Lorem ipsum etc | ||
49 | Lorem ipsum etc Lorem ipsum etc | 49 | Lorem ipsum etc Lorem ipsum etc | ||
50 | 50 | | |||
51 | - Test d'écriture avec des accents à la française. Ça marche ou pas ? | 51 | - Test d'écriture avec des accents à la française. Ça marche ou pas ? | ||
52 | 52 | | |||
53 | <endfold id='1'>== My Subtitle 3 ==</endfold id='1'><beginfold id='1'>== My Subtitle 3 ==</beginfold id='1'> | 53 | <endfold id='1'></endfold id='1'><beginfold id='1'>== My Subtitle 3 ==</beginfold id='1'> | ||
54 | 54 | | |||
55 | 55 | | |||
56 | Lorem ipsum etc | 56 | Lorem ipsum etc | ||
57 | Lorem ipsum etc | 57 | Lorem ipsum etc | ||
58 | 58 | | |||
59 | Here is a direct link: http://kde.org | 59 | Here is a direct link: http://kde.org | ||
60 | 60 | | |||
61 | 61 | | |||
62 | - Another boring part... | 62 | - Another boring part... | ||
63 | 63 | | |||
64 | 64 | | |||
65 | 65 | | |||
66 | <endfold id='1'>=== My Subsubtitle 1 ===</endfold id='1'><beginfold id='1'>=== My Subsubtitle 1 ===</beginfold id='1'> | 66 | <endfold id='1'></endfold id='1'><beginfold id='1'>=== My Subsubtitle 1 ===</beginfold id='1'> | ||
67 | 67 | | |||
68 | //It's a level 3 header// | 68 | //It's a level 3 header// | ||
69 | 69 | | |||
70 | - list 1 | 70 | - list 1 | ||
71 | - list 2 | 71 | - list 2 | ||
72 | - list 2b | 72 | - list 2b | ||
73 | - list 3 | 73 | - list 3 | ||
74 | 74 | | |||
75 | 75 | | |||
76 | <endfold id='1'>=== My Subsubtitle 2 ===</endfold id='1'><beginfold id='1'>=== My Subsubtitle 2 ===</beginfold id='1'> | 76 | <endfold id='1'></endfold id='1'><beginfold id='1'>=== My Subsubtitle 2 ===</beginfold id='1'> | ||
77 | 77 | | |||
78 | //It's another level 3 header// | 78 | //It's another level 3 header// | ||
79 | 79 | | |||
80 | + ordered list 1 | 80 | + ordered list 1 | ||
81 | + list 2 | 81 | + list 2 | ||
82 | + list 2B | 82 | + list 2B | ||
83 | + list 2C | 83 | + list 2C | ||
84 | + list 3 | 84 | + list 3 | ||
85 | 85 | | |||
86 | 86 | | |||
87 | <endfold id='1'>== My Subtitle 4 ==</endfold id='1'><beginfold id='1'>== My Subtitle 4 ==</beginfold id='1'> | 87 | <endfold id='1'></endfold id='1'><beginfold id='1'>== My Subtitle 4 ==</beginfold id='1'> | ||
88 | 88 | | |||
89 | nothing to say here... | 89 | nothing to say here... | ||
90 | 90 | |