This shows you the differences between two versions of the page.
|
wiki:syntax [ 1 May 2020 at 06:38 EDT] 127.0.0.1 external edit |
wiki:syntax [23 May 2020 at 21:30 EDT] (current) Kayode Lycaon |
||
|---|---|---|---|
| Line 436: | Line 436: | ||
| If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''. | If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''. | ||
| - | |||
| - | |||
| - | ===== 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.) | ||
| - | |||
| - | 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 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (generated inline HTML)'; | ||
| - | </php> | ||
| - | <PHP> | ||
| - | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; | ||
| - | echo '<td>'.phpversion().'</td>'; | ||
| - | echo '</tr></table>'; | ||
| - | </PHP> | ||
| - | </code> | ||
| - | |||
| - | <php> | ||
| - | echo 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (inline HTML)'; | ||
| - | </php> | ||
| - | <PHP> | ||
| - | echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>'; | ||
| - | echo '<td>'.phpversion().'</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. | ||
| ===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||