|
Revision 378, 0.7 kB
(checked in by schst, 4 years ago)
|
added output filter to highlight PHP code
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<!-- $Id$ --> |
|---|
| 2 |
<patTemplate:tmpl name="page"> |
|---|
| 3 |
<p> |
|---|
| 4 |
Whitespace |
|---|
| 5 |
will |
|---|
| 6 |
be |
|---|
| 7 |
left untouched in this |
|---|
| 8 |
part. |
|---|
| 9 |
</p> |
|---|
| 10 |
<patTemplate:tmpl name="foo" outputFilter="StripWhitespace"> |
|---|
| 11 |
<p> |
|---|
| 12 |
In this |
|---|
| 13 |
part whitespace will be removed... |
|---|
| 14 |
|
|---|
| 15 |
Using a standard input filter... |
|---|
| 16 |
</p> |
|---|
| 17 |
</patTemplate:tmpl> |
|---|
| 18 |
<p> |
|---|
| 19 |
And again, |
|---|
| 20 |
whitespace |
|---|
| 21 |
will be kept. |
|---|
| 22 |
</p> |
|---|
| 23 |
<patTemplate:tmpl name="bbcode"> |
|---|
| 24 |
<p> |
|---|
| 25 |
This template contains [b]BBCode[/b] markup: |
|---|
| 26 |
[date/] |
|---|
| 27 |
</p> |
|---|
| 28 |
</patTemplate:tmpl> |
|---|
| 29 |
<p> |
|---|
| 30 |
And here [b]BBCode[/b] markup will be ignored... |
|---|
| 31 |
</p> |
|---|
| 32 |
|
|---|
| 33 |
<patTemplate:tmpl outputFilter="HighlightPhp"> |
|---|
| 34 |
<?php |
|---|
| 35 |
for ($i = 0; $i < count($_GET['foo']); $i++) { |
|---|
| 36 |
echo doSomething($i); |
|---|
| 37 |
} |
|---|
| 38 |
?> |
|---|
| 39 |
</patTemplate:tmpl> |
|---|
| 40 |
|
|---|
| 41 |
</patTemplate:tmpl> |
|---|