diff options
-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. |