Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:help:redaction [14/08/2021 02:55]
Hugo
en:help:redaction [14/08/2021 02:58] (current)
Hugo [Syntax Plugins]
Line 438: Line 438:
  
  
-===== Embedding HTML and PHP =====+===== Embedding HTML =====
  
-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.)+You can embed raw HTML into your documents by using the ''%%<html>%%'' tags. (Use uppercase tags if you need to enclose block level elements.)
  
 HTML example: HTML example:
Line 460: Line 460:
 </HTML> </HTML>
  
-PHP example:+===== Icones =====
  
 +Yon can use icons font, like [[https://fonts.google.com/icons|Material ]] and [[https://fontawesome.com/v5.15/how-to-use/on-the-web/referencing-icons/basic-use|Font Awesome]], in an article by using their own syntax and a %%<html>%% tag. 
 +
 +This code for //Material// icons:
 <code> <code>
-<php> +<html><span class="material-icons">home</span></html>
-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> </code>
 +will look like this :
  
-<php> +<html><span class="material-icons">home</span></html>
-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.+This code for //Font Awesome// icons: 
 +<code
 +<html><span class="fas fa-camera"></span></html> 
 +</code> 
 +will look like this:
  
 +<html><span class="fas fa-camera"></span></html>
 ===== RSS/ATOM Feed Aggregation ===== ===== RSS/ATOM Feed Aggregation =====
 [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:
Line 519: Line 510:
 | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |
  
-===== Syntax Plugins ===== 
- 
-DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: 
- 
-~~INFO:syntaxplugins~~