Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
wiki:syntax [14 Feb 2021 20:05] – [Syntax Highlighting] Robin Getzwiki:syntax [25 Mar 2021 17:25] – remove HTML and PHP Robin Getz
Line 429: Line 429:
 ===== Embedding HTML and PHP ===== ===== Embedding HTML and PHP =====
  
-You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.) +**Please Note**: HTML and PHP embedding is disabled, and will not be turned on on this wiki(compare to other dokuwiki installations).
- +
-HTML example: +
- +
-<code> +
-<html> +
-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 <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> +
- +
-PHP example: +
- +
-<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 configurationIf disabled, the code is displayed instead of executed.+
  
 ===== RSS/ATOM Feed Aggregation ===== ===== RSS/ATOM Feed Aggregation =====
wiki/syntax.txt · Last modified: 22 Oct 2021 16:09 by Robin Getz