Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:syntax [12.12.2021] – cs | wiki:syntax [11.11.2024] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 369: | Zeile 369: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// | + | [[wiki:dokuwiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
- | <code java> | + | <code java [enable_line_numbers=" |
/** | /** | ||
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
Zeile 389: | Zeile 389: | ||
When you use the '' | When you use the '' | ||
- | < | + | < |
+ | <file php myexample.php> | ||
<file php myexample.php> | <file php myexample.php> | ||
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
Zeile 402: | Zeile 403: | ||
- | ===== Embedding HTML and PHP ===== | + | ===== Embedding HTML, JavaScript |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | You can embed raw HTML, JavaScript |
- | HTML example: | + | ==== HTML example: |
- | < | + | |
+ | < | ||
< | < | ||
- | This is some <span style=" | + | |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
</ | </ | ||
Zeile 420: | Zeile 419: | ||
This is some <span style=" | This is some <span style=" | ||
</ | </ | ||
+ | |||
+ | <code html [enable_line_numbers=" | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
< | < | ||
<p style=" | <p style=" | ||
</ | </ | ||
- | PHP example: | + | ==== JavaScript ==== |
- | < | + | < |
- | <php> | + | <JS> |
- | echo 'A logo generated by PHP:'; | + | // the hello world program |
- | echo '< | + | document.write('Hello, World!'); |
- | echo ' | + | </JS> |
- | </php> | + | |
- | <PHP> | + | </code> |
- | echo '<table class=" | + | |
- | echo '< | + | <JS> |
- | echo '</ | + | // the hello world program |
- | </PHP> | + | document.write('Hello, World!'); |
+ | </JS> | ||
+ | ==== PHP example: ==== | ||
+ | <code php [enable_line_numbers=" | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | |
- | echo '< | + | echo '< |
- | echo ' | + | echo '(generated |
</ | </ | ||
+ | </ | ||
+ | |||
+ | <code php [enable_line_numbers=" | ||
<PHP> | <PHP> | ||
echo '< | echo '< | ||
Zeile 450: | Zeile 462: | ||
</ | </ | ||
</ | </ | ||
- | < | + | |
+ | < | ||
<php> | <php> | ||
echo 'The PHP version: '; | echo 'The PHP version: '; | ||
Zeile 456: | Zeile 469: | ||
echo ' (generated inline HTML)'; | echo ' (generated inline HTML)'; | ||
</ | </ | ||
- | |||
</ | </ | ||
<php> echo 'The PHP version: '; echo phpversion(); | <php> echo 'The PHP version: '; echo phpversion(); | ||
- | < | + | < |
<PHP> | <PHP> | ||
echo '< | echo '< | ||
Zeile 467: | Zeile 479: | ||
echo '</ | echo '</ | ||
</ | </ | ||
- | |||
</ | </ | ||
Zeile 485: | Zeile 496: | ||
| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:dokuwiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:dokuwiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. |
**Example: | **Example: |