Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
wiki:syntax [Le 28/05/2007, 15:24] charlaxwiki:syntax [Le 05/08/2026, 21:36] (Version actuelle) – créée - modification externe 127.0.0.1
Ligne 1: Ligne 1:
-EN COURS+====== Formatting Syntax ======
  
-===== Pré-requis =====+[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.
  
-  * Il vaut mieux avoir certaines bases de l'utilisation de Linux (ligne de commande) +===== Basic Text Formatting =====
-  * Connaitre les bases de l'administration d'un réseau +
-  * Préparez matériellement votre serveur : je vous conseille de le mettre dans sa configuration normale (c'est-à-dire avec les deux cartes réseaux) car la détection automatique de l'installateur vous sera très utile.+
  
-===== Installation =====+DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.
  
-  - Téléchargez la version serveur de Ubuntu correspondant à votre architecture +  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. 
-  - Gravez-la +  Of course you can **__//''combine''//__** all these.
-  - Démarrez l'installation +
-  - Suivez les instructions, les points importants sont détaillés ci-après.+
  
-=== Cartes réseaux ===+Note that the formatting markers have to directly enclose the text, so ''%%** bold **%%'' with spaces inside the markers will not be formatted.
  
-Connectez l'une de ces cartes à votre modem adsl. Choisissez l'une des cartes (eth0 ou eth1 la plupart du temps)si la configuration automatique avec DHCP échoue, revenez en arrière et choisissez l'autre carte.+You can use <sub>subscript</sub> and <sup>superscript</sup>too.
  
-=== Partitionnement ===+  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
  
-Choisissez le partitionnement manuel. En effet il vaut mieux utiliser plusieurs partitions pour sécuriser votre système : en effet la plus utilisée (''/home'') ne doit pas compromettre la plus importante (''/boot'').+You can mark something as <del>deleted</del> as well.
  
-== Swap ==+  You can mark something as <del>deleted</del> as well.
  
-  Taille : deux fois la taille de votre Ram +**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line.
-  Type : primaire +
-  Emplacement : début +
-  Utiliser comme : espace d'échange (swap)+
  
-== ''/boot'' ==+This is some text with some linebreaks\\ Note that the 
 +two backslashes are only recognized at the end of a line\\ 
 +or followed by\\ a whitespace \\this happens without it.
  
-  * Taille : 100 MB +  This is some text with some linebreaks\\ Note that the 
-  * Type : primaire +  two backslashes are only recognized at the end of a line\\ 
-  * Utiliser comme : ext2 (nous utilisons ce système de fichier car de cette façon nous sommes certains que cette partition sera lisible avec la plupart des noyaux) +  or followed by\\ a whitespace \\this happens without it.
-  * Point de montage : ''/boot''+
  
-== ''/'' (root) ==+You should use forced newlines only if really needed.
  
-  * Type : primaire +===== Links =====
-  * Point de montage : ''/''+
  
-== ''/home'' ==+DokuWiki supports multiple ways of creating links.
  
-  * Type : primaire +==== External ====
-  * Point de montage : ''/home''+
  
-=== Mot de passe ===+External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-{{installation:warning.png  }} +  DokuWiki supports multiple ways of creating linksExternal links are recognized 
->Choisissez un mot de passe très simple lors de l'installation (trois fois la même lettre par exemple), et changez-le  **dès le redémarrage**En effet, il se peut que vous vous soyez trompé dans le choix du clavier...+  automagically: http://www.google.com or simply www.google.com You can set 
 +  link text as well: [[http://www.google.com|This Link points to google]]Email 
 +  addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-=== Fin de l'installation ===+==== Internal ====
  
-N'installez aucun autre logiciel, nous le ferons ensuiteRedémarrez le serveur.+Internal links are created by using square bracketsYou can either just give a [[pagename]] or use an additional [[pagename|link text]].
  
-===== Configuration =====+  Internal links are created by using square brackets. You can either just give 
 +  a [[pagename]] or use an additional [[pagename|link text]].
  
-Après le redémarrage''ifconfig'' montre que vous n'avez qu'une seul interface configurée.+[[doku>pagename|Wiki pagenames]] are converted to lowercase automaticallyspecial characters are not allowed.
  
-=== Fichier ''/etc/apt/sources.list'' ===+You can use [[some:namespaces]] by using a colon in the pagename.
  
-Rajoutez un ''#'' devant la ligne commençant par ''deb cdrom''. Cela vous permettra d'installer directement à partir d'Internet.+  You can use [[some:namespaces]] by using a colon in the pagename.
  
-=== Fichier ''/etc/network/interfaces'' ===+For details about namespaces see [[doku>namespaces]].
  
-Rajoutez ceci pour créer l'adresse sur le réseau. Il est possible que ce soit la carte eth1.+Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]].
  
-<code> +  This links to [[syntax#internal|this Section]].
-auto eth0 +
-iface eth0 inet static +
- name LAN +
- address 192.168.0.1 +
- netmask 255.255.255.0 +
- broadcast 192.168.0.255 +
- network 192.168.0.0 +
-</code>+
  
-''sudo aptitude update'' +Notes:
-''sudo aptitude upgrade'' +
-''sudo aptitude install emacs w3m zsh vimhelp-fr vim''+
  
-Activez la coloration syntaxique dans ''vim'' en éditant le fichier ''/etc/vim/vimrc''Enlevez le ''"'' devant la ligne suivante : +  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. 
-<code> +  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. 
-syntax on+  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much. 
 + 
 +==== Interwiki ==== 
 + 
 +DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. 
 + 
 +  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. 
 +  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. 
 + 
 +==== Windows Shares ==== 
 + 
 +Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. 
 + 
 +  Windows Shares like [[\\server\share|this]] are recognized, too. 
 + 
 +Notes: 
 + 
 +  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). 
 +  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php
 +<?php 
 +/** 
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'] = '';
 </code> </code>
  
-==== Serveur Dhcpd ====+==== Image Links ====
  
-''aptitude install dhcpd''+You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this:
  
-=== ''/etc/default/dhcp'' ===+  [[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-Ne vous trompez pas dans l'interface !+[[http://php.net|{{wiki:dokuwiki-128.png}}]] 
 + 
 +Please note: The image formatting is the only formatting syntax accepted in link names. 
 + 
 +The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). 
 + 
 +===== Footnotes ===== 
 + 
 +You can add footnotes ((This is a footnote)) by using double parentheses. 
 + 
 +  You can add footnotes ((This is a footnote)) by using double parentheses. 
 + 
 +===== Sectioning ===== 
 + 
 +You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document. 
 + 
 +==== Headline Level 3 ==== 
 +=== Headline Level 4 === 
 +== Headline Level 5 == 
 + 
 +  ==== Headline Level 3 ==== 
 +  === Headline Level 4 === 
 +  == Headline Level 5 == 
 + 
 +By using four or more dashes, you can make a horizontal line: 
 + 
 +---- 
 + 
 +===== Media Files ===== 
 + 
 +You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them. 
 + 
 +Real size:                        {{wiki:dokuwiki-128.png}} 
 + 
 +Resize to given width:            {{wiki:dokuwiki-128.png?50}} 
 + 
 +Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}} 
 + 
 +Resized external image:           {{https://www.php.net/images/php.gif?200x50}} 
 + 
 +  Real size:                        {{wiki:dokuwiki-128.png}} 
 +  Resize to given width:            {{wiki:dokuwiki-128.png?50}} 
 +  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} 
 +  Resized external image:           {{https://www.php.net/images/php.gif?200x50}} 
 + 
 + 
 +By using left or right whitespaces you can choose the alignment. 
 + 
 +{{ wiki:dokuwiki-128.png}} 
 + 
 +{{wiki:dokuwiki-128.png }} 
 + 
 +{{ wiki:dokuwiki-128.png }} 
 + 
 +  {{ wiki:dokuwiki-128.png}} 
 +  {{wiki:dokuwiki-128.png }} 
 +  {{ wiki:dokuwiki-128.png }} 
 + 
 +You can also set the alignment explicitly with a ''?left'', ''?right'' or ''?center'' parameter. This takes precedence over the whitespace alignment above and can be combined with a size. 
 + 
 +{{wiki:dokuwiki-128.png?100&right}} 
 + 
 +  {{wiki:dokuwiki-128.png?100&right}} 
 + 
 +Of course, you can add a title (displayed as a tooltip by most browsers), too. 
 + 
 +{{ wiki:dokuwiki-128.png |This is the caption}} 
 + 
 +  {{ wiki:dokuwiki-128.png |This is the caption}} 
 + 
 +For linking an image to another page see [[#Image Links]] above. 
 + 
 +==== Supported Media Formats ==== 
 + 
 +DokuWiki can embed the following media formats directly. 
 + 
 +| Image | ''gif'', ''jpg'', ''png'' 
 +| Video | ''webm'', ''ogv'', ''mp4''
 +| Audio | ''ogg'', ''mp3'', ''wav'' 
 +| Flash | ''swf''                    | 
 + 
 +If you specify a filename that is not a supported media format, then it will be displayed as a link instead. 
 + 
 +By adding ''?linkonly'' you provide a link to the media without displaying it inline 
 + 
 +  {{wiki:dokuwiki-128.png?linkonly}} 
 + 
 +{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image. 
 + 
 +==== Fallback Formats ==== 
 + 
 +Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. 
 + 
 +For example consider this embedded mp4 video: 
 + 
 +  {{video.mp4|A funny video}} 
 + 
 +When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser. 
 + 
 +Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work. 
 + 
 +===== Lists ===== 
 + 
 +Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones. 
 + 
 +  * This is a list 
 +  * The second item 
 +    * You may have different levels 
 +  * Another item 
 + 
 +  - The same list but ordered 
 +  - Another item 
 +    - Just use indention for deeper levels 
 +  - That's it
  
 <code> <code>
-INTERFACES="eth0"+  * This is a list 
 +  * The second item 
 +    * You may have different levels 
 +  * Another item 
 + 
 +  - The same list but ordered 
 +  - Another item 
 +    - Just use indention for deeper levels 
 +  - That's it
 </code> </code>
  
-=== ''/etc/dhcp/dhcpd.conf'' ===+Also take a look at the [[doku>faq:lists|FAQ on list items]].
  
-<code> +===== Text Conversions =====
-option domain-name "VOTRE_NOM_DE_DOMAINE"; +
-option domain-name-servers VOS_SERVEURS_DNS; +
-option routers 192.168.0.1;+
  
-subnet 192.168.0.0 netmask 255.255.255.0 { +DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML.
- authoritative; +
- range 192.168.0.20 192.168.0.255; +
- option broadcast-address 192.168.0.255; +
-}+
  
-# Pour des adresses particulières pour certaines cartes réseau +The text to image conversion is mainly done for smileysAnd the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well.
-host  { +
-hardware ethernet ADRESSE_MAC_DE_LA_CARTE; +
-fixed-address 192.168.0.2; +
-+
-</code>+
  
-==== Serveur Dns (bind) ====+==== Text to Image Conversions ====
  
-''aptitude install bind9''+DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki:
  
-=== Fichier ''/etc/bind/named.conf'' ===+  * 8-) %%  8-)  %% 
 +  * 8-O %%  8-O  %% 
 +  * :-( %%  :-(  %% 
 +  * :-) %%  :-)  %% 
 +  * =)  %%  =)   %% 
 +  * :-%%  :- %% 
 +  * :-\ %%  :-\  %% 
 +  * :-? %%  :-?  %% 
 +  * :-D %%  :-D  %% 
 +  * :-P %%  :-P  %% 
 +  * :-O %%  :-O  %% 
 +  * :-X %%  :-X  %% 
 +  * :-| %%  :-|  %% 
 +  * ;-) %%  ;-)  %% 
 +  * ^_^ %%  ^_^  %% 
 +  * m(  %%  m(   %% 
 +  * :?: %%  :?:  %% 
 +  * :!: %%  :!:  %% 
 +  * LOL %%  LOL  %% 
 +  * FIXME %%  FIXME %% 
 +  * DELETEME %% DELETEME %%
  
-Rajoutez les options correspondant à votre zone :+==== Text to HTML Conversions ==== 
 + 
 +Typography[[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. 
 + 
 +-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) 
 +"He thought 'It's a man's world'..."
  
 <code> <code>
-zone "d3in.org" { +-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) 
- type master; +"He thought 'It's a man's world'..."
- file "d3in.org.zone"+
- allow-transfer { +
- // twisted4life +
- 202.157.182.142; +
- // gandi +
- 217.70.177.40; +
- }; +
-};+
 </code> </code>
  
-=== Fichier ''/var/cache/bind/d3in.org.zone'' ===+The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. 
 + 
 +There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'singleand "double quotes"They can be turned off through a [[doku>config:typography|config option]]. 
 + 
 +===== Quoting ===== 
 + 
 +Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
  
 <code> <code>
-; Fichier de zone "type" pour le domaine "d3in.org" +I think we should do it
-; Formation Debian GNU/Linux par Alexis de Lattre +
-; http://www.via.ecp.fr/~alexis/formation-linux/+
  
-; Utiliser la commande +> No we shouldn't
-; "named-checkzone d3in.org /var/cache/bind/d3in.org.zone" +
-; pour vérifier la validité du fichier de zone.+
  
-; Utiliser la commande "named-checkconf" pour vérifier la validité du fichier +>> Well, I say we should
-; de configuration /etc/bind/named.conf+
  
-; ATTENTION : ne pas oublier de mettre à jour le "serial" à chaque +> Really?
-; modification des enregistrements de ce fichier.+
  
-; ATTENTION : dans les fichiers de zone, les noms DNS complets doivent se +>> Yes!
-; terminer par des points (par exemple "master.d3in.org.")+
  
-$TTL 3D+>>> Then lets do it! 
 +</code>
  
-@    IN SOA     www.d3in.org.   root.ns.d3in.org. ( +I think we should do it
-                2007063103 ; SERIAL (aaaammddrr) +
-                8H +
-                2H +
-                4W +
-                1D )+
  
-d3in.org. IN TXT "v=spf1 a mx include:free.fr ~all" +> No we shouldn't
-www.d3in.org. IN TXT "v=spf1 a -all" +
-d3in.org.       IN      NS      www.d3in.org. +
-d3in.org.       IN      NS      ns6.gandi.net. +
-d3in.org.       IN      MX 1    www.d3in.org. +
-d3in.org.       IN      MX 10   mail.rollernet.us. +
-d3in.org.       IN      MX 10   mail2.rollernet.us.+
  
-@       IN      A       82.235.70.120 +>> Well, I say we should
-www     IN      A       82.235.70.120+
  
-imap CNAME d3in.org +> Really?
-smtp CNAME d3in.org+
  
-ca CNAME d3in.org +>> Yes!
-</code>+
  
-=== Test ===+>>> Then lets do it!
  
-''/etc/init.d/bind9 restart'' +===== Tables =====
-Utilisez la commande ''named-checkzone d3in.org /var/cache/bind/d3in.org.zone'' pour vérifier la validité du fichier de zone. +
-Utiliser la commande ''named-checkconf'' pour vérifier la validité du fichier de configuration ''/etc/bind/named.conf''.+
  
-==== Serveur ssh ====+DokuWiki supports a simple syntax to create tables.
  
-''aptitude install openssh-server''+^ Heading 1      ^ Heading 2       ^ Heading 3          ^ 
 +| Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | 
 +| Row 2 Col 1    | some colspan (note the double pipe) || 
 +| Row 3 Col 1    | Row 3 Col 2     | Row 3 Col 3        |
  
-=== Fichier /etc/sshd_config ===+Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.
  
-Les lignes suivantes ne sont pas dans l'ordre. Modifiez les lignes correspondantes du fichier. +  ^ Heading 1      ^ Heading 2       ^ Heading 3          ^ 
-<code> +  | Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        | 
-# Nous n'utiliserons pas le port 22 +  | Row 2 Col 1    | some colspan (note the double pipe) || 
-Port XXXXX+  | Row 3 Col 1    | Row 3 Col 2     | Row 3 Col 3        |
  
-# Temps réduit pour se logger +To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!
-LoginGraceTime 30+
  
-# Le root n'est pas autorisé à se logger +Vertical tableheaders are possible, too.
-PermitRootLogin no+
  
-X11Forwarding no+|              ^ Heading 1            ^ Heading 2          ^ 
 +^ Heading 3    | Row 1 Col 2          | Row 1 Col 3        | 
 +^ Heading 4    | no colspan this time |                    | 
 +^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
  
-# On autorise un seul utilisateur à se connecter à partir d'un ordinateur externe +As you can see, it's the cell separator before a cell which decides about the formatting:
-AllowUsers VOTRE_UTILISATEUR@*  *@192.168.0.* +
-</code>+
  
-=== Test de la configuration ===+  |              ^ Heading 1            ^ Heading 2          ^ 
 +  ^ Heading 3    | Row 1 Col 2          | Row 1 Col 3        | 
 +  ^ Heading 4    | no colspan this time |                    | 
 +  ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
  
-'' /etc/init.d/ssh restart''+You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.
  
-{{installation:warning.png  }} +^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ 
->N'oubliez pas que désormais le port n'est plus 22 !+| Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
 +| Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +| Row 3 Col 1    | :::                        | Row 2 Col 3        |
  
-''ssh votre_adresse_ip -p XXXX''+Apart from the rowspan syntax those cells should not contain anything else.
  
-Rajoutez ceci dans /etc/bashrc :+  ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ 
 +  | Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
 +  | Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +  | Row 3 Col 1    | :::                        | Row 2 Col 3        |
  
-<code> +You can align the table contents, tooJust add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text.
-alias ssh_VOTRE_NOM_DHOTE='ssh 192.168.0.1 -p XXXX' +
-</code>+
  
-==== Proxy-router-firewall (tinyproxy, firehol) ====+^           Table with alignment           ^^^ 
 +|         right|    center    |left          | 
 +|left          |         right|    center    | 
 +| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-''sudo aptitude install firehol tinyproxy''+This is how it looks in the source:
  
-Si jamais à ce stage vous avez besoin d'Internet : +  ^           Table with alignment           ^^^ 
 +  |         right|    center    |left          | 
 +  |left          |         right|    center    | 
 +  | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-''echo 1 >  /proc/sys/net/ipv4/ip_forward'' +Note: Vertical alignment is not supported.
-''iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE''+
  
-=== ''/etc/default/firehol'' ===+===== No Formatting =====
  
-Remplacez ''NO'' par ''YES''.+If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''.
  
-=== ''/etc/firehol/firehol.conf'' ===+<nowiki> 
 +This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. 
 +</nowiki> 
 +The same is true for %%//__this__ text/with a smiley ;-)%%. 
 + 
 +  <nowiki> 
 +  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. 
 +  </nowiki> 
 +  The same is true for %%//__this__ text// with a smiley ;-)%%. 
 + 
 +===== Code Blocks ===== 
 + 
 +You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags ''%%<code>%%'' or ''%%<file>%%''
 + 
 +  This is text is indented by two spaces.
  
 <code> <code>
-+This is preformatted code all spaces are preserved: like              <-this 
-# $Id: client-all.conf,v 1.2 2002/12/31 15:44:34 ktsaou Exp $ +</code>
-+
-This configuration file will allow all requests originating from the +
-# local machine to be send through all network interfaces. +
-+
-# No requests are allowed to come from the network. The host will be +
-# completely stealthed! It will not respond to anything, and it will +
-# not be pingable, although it will be able to originate anything +
-# (even pings to other hosts). +
-#+
  
-version 5+<file> 
 +This is pretty much the same, but you could use it to show that you quoted a file. 
 +</file>
  
-public_ip="82.235.70.20"+Those blocks were created by this source:
  
-interface eth0 home +    This is text is indented by two spaces.
-        policy reject +
-        server "smtp http https ftp ssh dns cups ping imap imaps rsync icmp ntp smtp smtps squid" accept +
-        client "icmp samba http" accept+
  
-interface eth1 internet +  <code> 
-        protection strong +  This is preformatted code all spaces are preserved: like              <-this 
-        server "smtp http ftp ssh dns" accept +  </code>
-        client all accept+
  
-router home2internet inface eth0 outface eth1 +  <file> 
-#        route "ftp jabber telnet time cups ping pop3 pop3s dhcp dns http https msn rsync rtp icmp imap imaps nntp ntp smtp smtps ssh squid sipaccept +  This is pretty much the same, but you could use it to show that you quoted a file. 
-        route all accept +  </file> 
-        masquerade+ 
 +==== Syntax Highlighting ==== 
 + 
 +[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''
 + 
 +<code java> 
 +/** 
 + * The HelloWorldApp class implements an application that 
 + * simply displays "Hello World!" to the standard output. 
 + */ 
 +class HelloWorldApp { 
 +    public static void main(String[] args) { 
 +        System.out.println("Hello World!"); //Display the string. 
 +    } 
 +}
 </code> </code>
  
-==== Serveur Web (Apache) Mysql Php Mod_python ====+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
-''aptitude install apache2 libapache2-mod-php4  phpmyadmin libapache2-mod-python2.4 mysql-server-4.1 apache2-utils''+There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
  
-=== Fichier /etc/apache2/ ===+==== Downloadable Code Blocks ==== 
 + 
 +When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:
  
-Enlever le ''#'' à la ligne suivante :  
 <code> <code>
-x-http-php+<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file>
 </code> </code>
  
-=== Test ===+<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file>
  
- - Connectez-vous sur votre serveur. +If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code''%%<code - myfile.foo>%%''. 
- - Créer un fichier ''index.php'' avec pour seul contenu  + 
-<code php+===== RSS/ATOM Feed Aggregation ===== 
-<?php +[[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: 
-phpinfo(); + 
-?> +^ Parameter  ^ Description ^ 
-</code>+| any number | will be used as maximum number items to show, defaults to 8 | 
 +| reverse    | display the last items in the feed first | 
 +| author     | show item authors names | 
 +| date       | show item dates | 
 +| description| show the item description. All HTML tags will be stripped | 
 +| nosort     | do not sort the items in the feed | 
 +| //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. 
 + 
 +By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''
 + 
 +**Example:** 
 + 
 +  {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
 +{{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
-==== Serveur d'impression (Cups) ==== 
  
-{{installation:warning.png  }} +===== Control Macros =====
->N'oubliez pas d'allumer votre imprimante et de la brancher au serveur...+
  
-''apt-get install hpijs-ppds linuxprinting.org-ppds hpijs cupsys''+Some syntax influences how DokuWiki renders a page without creating any output it selfThe following control macros are availble:
  
-==== Proxy (dansguardiantinyproxy====+^ Macro           ^ Description | 
 +| %%~~NOTOC~~%%   | If this macro is found on the pageno table of contents will be created | 
 +| %%~~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 =====
  
-===== Crédits =====+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:
  
-Tutoriel réalisé par Charles-Axel Dein.+~~INFO:syntaxplugins~~