File: test.tml

package info (click to toggle)
source-highlight 3.1.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,332 kB
  • ctags: 5,233
  • sloc: sh: 11,270; cpp: 10,206; ansic: 9,515; makefile: 1,865; lex: 1,200; yacc: 1,021; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ml: 38; ada: 36; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 6; sed: 4
file content (228 lines) | stat: -rw-r--r-- 4,010 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
%META:DATUM{key="value" anotherkey="anothervalue"}%

<!-- Set statements -->

   * Set MACRO = value value value
   morevalue
   morevalue
   * Set ONELINER = Value %value%
      * Set ANOTHERMACRO = value
         * Set YETANOTHERMACRO = value

<!-- "important" HTML tags -->

<img src="%ATTACHURLPATH%"/>

<br/>

<form action="%SCRIPTURLPATH{"save"}%" method="post">
<input type="hidden" name="topic" value="Web.Topic"/>
<input type="submit"/>
</form>

<u>underlined text</u>
<s>strike-out text</s>
<strike>strike-out text</strike>
<del>strike-out text</del>

<!-- not really HTML -->
<nop> <nop/>
<noautolink>This is NotAutoLinked, so there</noautolink>
<sticky><div class="to be protected by WYSIWYG">markup!</div></sticky>
<literal>So, *none* of _this_ is =styled=, but %MACROS{still="work" as="normal"}%</literal>
<verbatim class="tml">So, *none* of _this_ is =styled=, and %MACROS{are="disabled"}%</verbatim>
<verbatim class="tml">Only the outer verbatim does anything; <verbatim>inner</verbatim> are ignored (displayed as normal text)</verbatim>

<!-- not-really-HTML plugin syntax -->
<dot>DirectedGraphPlugin</dot>

1st
paragraph

2nd
paragraph

*Bold text*

_Underlined text_

__Bold italic text__

=monospaced text=

==bold monospaced text==

<!-- Horizontal rule: -->

---

   * Bullet
      * Con
        tinued
   * Bullet

   1. Number
      1. Con
         tinued
   1. Number

   A. Alpha
      A. Con
         tinued
   A. Alpha

   a. alpha
      a. Con
         tinued
   a. alpha

   I. Roman
      I. Con
         tinued
   I. Roman

   i. roman
      i. Con
         tinued
   i. roman

   $ Term: Definition

<!-- table -->

| *L* | *C* | *R* |
| A2 |  B2  |  C2 |
| A3 |  B3  |  C3 |
| multi span |||
| A5-7 |  5  |  5 |
|^| six | six |
|^| seven | seven |
| split\
| over\
| 3 lines |
| A9 |  B9  |  C9 |

WikiWord

Web.WikiWord

Web.SubWeb.WikiWord

<nop>NotAutoLinked

!NotAutoLinked

ACRONYM

Web.ACRONYM

Web.SubWeb.ACRONYM

<nop>ACRONYMNOTAUTOLINKED

!ACRONYMNOTAUTOLINKED

#MyAnchor

[[topic name]]

[[TopicName]]

[[Web.My topic name]]

![[not a link]]

[[TopicName][link text]]

http://example.org/autolinked

a@b.com

[[mailto:a@b.com]\
[Mail]]

[[mailto:?subject=\
Hi][Hi]]

<noautolink>NotAutoLinked</noautolink>

<literal>
| Not | A | Table |
*Not bolded*
[[not linked]]
%MACROS{still="work" as="normal"}%
</literal>

<verbatim class="bash">
#!/bin/bash
while [ -n "$(ls . ~/ \
~/pub* /var/www 2>/dev/null \
 | fgrep foswiki )" ] ; do
  clear
  printf "\nFoswiki rules!\n"
  sleep 10
  clear
  printf "\nFoswiki still rules!\n"
  sleep 10
  done; exit 0

%MACROS{not="expanded"}%
</verbatim>

<!-- Table Of Contents -->

%TOC%
---+ Heading 1
---+!! Heading 1 not in TOC
---++ Heading 2
---++!! Heading 2 not in TOC
---+++ Heading 3
---+++!! Heading 3 not in TOC
---++++ Heading 4
---++++!! Heading 4 not in TOC
---+++++ Heading 5
---+++++!! Heading 5 not in TOC
---++++++ Heading 6
---++++++!! Heading 6 not in TOC

<!-- Non-trivial %MACRO expressions -->

%MACRO{
  format="   * $token(Argument) $foo [[/path/%to%/$bar][text]]
    %WITHIN{
      format="   * $token(Argument) $foo [[/path/%to%/$bar][text]]
        %NESTED{
          macro="   * $token(Argument) $foo [[/path/%to%/$bar][text]]"
        }%"
    }%"
}%

%INCLUDE{
  "%QUERY{
    "'%SYSTEMWEB%.FAQWhatIsWikiWiki'/TopicClassification"
  }%"
  section="Summary"
}%

%MACRO{
  format="   * $token(Argument) $foo [[/path/%to%/$bar][text]] $percntWITHIN{
    format=\"   $token(Argument) $foo [[/path/%to%/$bar][text]] $percntNESTED{
      format=\"   * $token(Argument) $foo [[/path/%to%/$bar][text]] $percntDELAYED{
        macro=\"test\"
      }$percnt\"
    }$percnt\"
  }$percnt"
}%

%SEARCH{
  "info.date >= d2n('2009-01-01') AND info.date <= d2n('2009-12-31')"
  type="query"
  limit="2"
  nonoise="on"
  format="   * <img src=\"$percentICONURL{
    \"$percentIF{
      \"'$topic'/parent.name='UserDocumentationCategory'\"
      then=\"info\" else=\"gear\"
    }$percent\"
  }$percent\"/> [[$topic]]"
}%