Astuces de composition

  • Les adresses de pages web et de courriels sont transformées en liens automatiquement.
  • Tags HTML autorisés : <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

    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'informations, consultez 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 saisissezVous obtenez
    Les ancres sont utilisées pour établir des liens vers d'autres pages.<a href="http://www.cigo-developpement.fr">Développements et Innovations informatiques. SSII, .net, c#, Windows Phone, PHP, Sugar, CRM, Rivalis</a>Développements et Innovations informatiques. SSII, .net, c#, Windows Phone, PHP, Sugar, CRM, Rivalis
    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

    La plupart des caractères non usuels peuvent directement utilisés.

    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 consultez la page entités HTML du W3C. Voici quelques un des caractères disponibles :

    Description du caractèreVous saisissezVous 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: "[c]" for C source code, "[cpp]" for C++ source code, "[css]" for CSS source code, "[drupal5]" for Drupal 5 source code, "[drupal6]" for Drupal 6 source code, "[java]" for Java source code, "[javascript]" for Javascript source code, "[php]" for PHP source code, "[python]" for Python source code, "[ruby]" for Ruby 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, class. The possible values are: "c" (for C), "cpp" (for C++), "css" (for CSS), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "java" (for Java), "javascript" (for Javascript), "php" (for PHP), "python" (for Python), "ruby" (for Ruby).
    • 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.
    • A title can be added to a code block with the attribute "title".

    Defaults:

    • Default highlighting mode for generic syntax highlighting tags: when no language attribute is specified, no syntax highlighting will be done.
    • Default line numbering: no line numbers.

    Exemples:

    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="css" linenumbers="normal"]
    foo = "bar";
    baz = "foz";
    [/code]
    Code block with syntax highlighting for CSS source code
    and normal line numbers.
    [code language="css" start="23" fancy="7"]
    foo = "bar";
    baz = "foz";
    [/code]
    Code block with syntax highlighting for CSS source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
    [c]
    foo = "bar";
    baz = "foz";
    [/c]
    Code block with syntax highlighting for C source code.
    [c start="23" fancy="7"]
    foo = "bar";
    baz = "foz";
    [c]
    Code block with syntax highlighting for C source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
© 2011 Copyright cigo-developpement.fr