diff options
author | Anika Henke <a.c.henke@arcor.de> | 2007-05-18 11:55:36 +0200 |
---|---|---|
committer | Anika Henke <a.c.henke@arcor.de> | 2007-05-18 11:55:36 +0200 |
commit | 96de80f72d3cdfae898d8080e369edfb047dfb03 (patch) | |
tree | 61b62d12198483f7241fce48b280794373260c84 /data | |
parent | 928a715daa9e74324c60722a0fb8990dca68cdd5 (diff) | |
download | rpg-96de80f72d3cdfae898d8080e369edfb047dfb03.tar.gz rpg-96de80f72d3cdfae898d8080e369edfb047dfb03.tar.bz2 |
adjusted wiki:syntax to additional <HTML>+<PHP> syntax
darcs-hash:20070518095536-d5083-f131fc5fa77720b709c1c38e2b70c085762897bf.gz
Diffstat (limited to 'data')
-rw-r--r-- | data/pages/wiki/syntax.txt | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/data/pages/wiki/syntax.txt b/data/pages/wiki/syntax.txt index 9c72bb00f..e907f907d 100644 --- a/data/pages/wiki/syntax.txt +++ b/data/pages/wiki/syntax.txt @@ -364,25 +364,43 @@ The refresh period defaults to 4 hours. Any value below 10 minutes will be treat You can embed raw HTML or PHP code into your documents by using the ''html'' or ''php'' tags like this: <code> <html> -This is some <font color="red" size="+1">HTML</font> +This is some <span style="color:red;font-size:150%;">inline HTML</span> </html> +<HTML> +<p style="border:2px dashed red;">And this is some block HTML</p> +</HTML> </code> <html> -This is some <font color="red" size="+1">HTML</font> +This is some <span style="color:red;font-size:150%;">inline HTML</span> </html> +<HTML> +<p style="border:2px dashed red;">And this is some block HTML</p> +</HTML> <code> <php> echo 'A logo generated by PHP:'; echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; +echo '(generated inline HTML)'; </php> +<PHP> +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; +echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; +echo '</tr></table>'; +</PHP> </code> <php> echo 'A logo generated by PHP:'; echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; +echo '(inline HTML)'; </php> +<PHP> +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; +echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; +echo '</tr></table>'; +</PHP> **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. |