Astuces de composition

formats d'entrée:
  • Filtered HTML:
    • Les adresses de pages web et de messagerie électronique sont transformées en liens automatiquement.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img><blockquote><div>

      Ce site autorise le contenu HTML. Alors qu'appendre tout l'HTML pourrait intimider, apprendre à utiliser un nombre très restreint des "balises" HTML les plus basiques est très facile. Ce tableau fournit des exemples pour chaque balise qui est autorisée sur ce site.

      Pour plus d'information voir les spécifications HTML du W3C ou utilisez votre moteur de recherche préféré pour trouver d'autres sites qui expliquent le code HTML.

      Description de la baliseVous entrezVous obtenez
      Les ancres sont utilisées pour établir des liens vers d'autres pages.<a href="http://www.pragmatic-source.com">Pragmatic Source</a>Pragmatic Source
      Accentué<em>Accentué</em>Accentué
      Fort<strong>Fort</strong>Fort
      Citation<cite>Citation</cite>Citation
      Text codé pour afficher du code de programmation<code>Codé</code>Codé
      Liste non ordonnée - utilisez <li> pour débuter chaque élément de la liste<ul> <li>Premier élément</li> <li>Second élément</li> </ul>
      • Premier élément
      • Second élément
      Liste ordonnée - utilisez <li> pour débuter chaque élément de la liste<ol> <li>Premier élément</li> <li>Second élément</li> </ol>
      1. Premier élément
      2. Second élément
      Les listes de définition sont similaires aux autres listes HTML. <dl> délimite la liste de définitions, <dt> délimite le terme à définir <dd> délimite la définition proprement dite.<dl> <dt>Premier terme</dt> <dd>Première définition</dd> <dt>Second terme</dt> <dd>Seconde définition</dd> </dl>
      Premier terme
      Première définition
      Second terme
      Seconde définition
      Aucune aide n'est fournie pour la balise img.
      Citation longue<blockquote>Citation longue</blockquote>
      Citation longue
      Aucune aide n'est fournie pour la balise div.

      La plupart des caractères non usuels peuvent être entrés sans problème.

      Si vous rencontrez des problèmes, essayez d'utiliser les entités HTML. Un exemple courant est &amp; pour le et commercial &. Pour une liste complète des entités voyez la page entités HTML du W3C. Voici quelques caractères disponibles :

      Description du caractèreVous entrezVous obtenez
      Et commercial&amp;&
      Supérieur&gt;>
      Inférieur&lt;<
      Marque de citation&quot;"
    • Les lignes et les paragraphes sont reconnus automatiquement. Les balises <br /> saut de ligne, <p> paragraphe et </p> fin de paragraphe sont insérées automatiquement.Si les paragraphes ne sont pas reconnus ajoutez simplement quelques lignes vides.
    • Syntax highlighting of source code can be enabled with the following tags:

      • Generic syntax highlighting tags: "<code>", "<blockcode>".
      • Language specific syntax highlighting tags: "<apache>" for Apache Log source code, "<bash>" for Bash source code, "<perl>" for Perl source code, "<python>" for Python source code, "<rails>" for Rails source code, "<ruby>" for Ruby source code, "<sql>" for SQL source code.

      Options and tips:

      • The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "apache" (for Apache Log), "bash" (for Bash), "c" (for C), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "css" (for CSS), "diff" (for Diff), "html4strict" (for HTML), "java" (for Java), "java5" (for Java(TM) 2 Platform Standard Edition 5.0), "javascript" (for Javascript), "mysql" (for MySQL), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP), "python" (for Python), "rails" (for Rails), "ruby" (for Ruby), "sql" (for SQL), "text" (for Text), "xml" (for XML).
      • Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
      • If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
      • Beside the tag style "<foo>" it is also possible to use "[foo]".

      Defaults:

      • Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
      • Default line numbering: fancy line numbers (every 10 lines).

      Examples:

      You typeYou get
      <code>foo = "bar";</code>Inline code with the default syntax highlighting mode.
      <code>
      foo = "bar";
      baz = "foz";
      </code>
      Code block with the default syntax highlighting mode.
      <code lang="text" linenumbers="normal">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for Text source code
      and normal line numbers.
      <code language="text" start="23" fancy="7">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for Text source code,
      line numbers starting from 23
      and highlighted line numbers every 7th line.
      <apache>
      foo = "bar";
      baz = "foz";
      </apache>
      Code block with syntax highlighting for Apache Log source code.
      <apache start="23" fancy="7">
      foo = "bar";
      baz = "foz";
      <apache>
      Code block with syntax highlighting for Apache Log source code,
      line numbers starting from 23
      and highlighted line numbers every 7th line.
  • Markdown + Geshi:
    • Syntax highlighting of source code can be enabled with the following tags:

      • Generic syntax highlighting tags: "<code>", "<blockcode>".
      • Language specific syntax highlighting tags: "<apache>" for Apache Log source code, "<bash>" for Bash source code, "<perl>" for Perl source code, "<python>" for Python source code, "<rails>" for Rails source code, "<ruby>" for Ruby source code, "<sql>" for SQL source code.

      Options and tips:

      • The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language. The possible values are: "apache" (for Apache Log), "bash" (for Bash), "c" (for C), "cpp" (for C++), "cpp-qt" (for C++ (QT)), "css" (for CSS), "diff" (for Diff), "html4strict" (for HTML), "java" (for Java), "java5" (for Java(TM) 2 Platform Standard Edition 5.0), "javascript" (for Javascript), "mysql" (for MySQL), "perl" (for Perl), "php" (for PHP), "php-brief" (for PHP), "python" (for Python), "rails" (for Rails), "ruby" (for Ruby), "sql" (for SQL), "text" (for Text), "xml" (for XML).
      • Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
      • If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
      • Beside the tag style "<foo>" it is also possible to use "[foo]".

      Defaults:

      • Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
      • Default line numbering: fancy line numbers (every 10 lines).

      Examples:

      You typeYou get
      <code>foo = "bar";</code>Inline code with the default syntax highlighting mode.
      <code>
      foo = "bar";
      baz = "foz";
      </code>
      Code block with the default syntax highlighting mode.
      <code lang="rails" linenumbers="normal">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for Rails source code
      and normal line numbers.
      <code language="rails" start="23" fancy="7">
      foo = "bar";
      baz = "foz";
      </code>
      Code block with syntax highlighting for Rails source code,
      line numbers starting from 23
      and highlighted line numbers every 7th line.
      <apache>
      foo = "bar";
      baz = "foz";
      </apache>
      Code block with syntax highlighting for Apache Log source code.
      <apache start="23" fancy="7">
      foo = "bar";
      baz = "foz";
      <apache>
      Code block with syntax highlighting for Apache Log source code,
      line numbers starting from 23
      and highlighted line numbers every 7th line.
    • Quick Tips:
      • Two or more spaces at a line's end = Line break
      • Double returns = Paragraph
      • *Single asterisks* or _single underscores_ = Emphasis
      • **Double** or __double__ = Strong
      • This is [a link](http://the.link.example.com "The optional title text")
      For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
    • Les lignes et les paragraphes sont reconnus automatiquement. Les balises <br /> saut de ligne, <p> paragraphe et </p> fin de paragraphe sont insérées automatiquement.Si les paragraphes ne sont pas reconnus ajoutez simplement quelques lignes vides.