Suggerimenti per la composizione

  • Indirizzi web o e-mail vengono trasformati in link automaticamente
  • Elementi HTML permessi: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>

    Questo sito consente l'uso di contenuto HTML. Se imparare tutto l'HTML può spaventare, imparare a usare un piccolo numero di elementi HTML di base è molto semplice. Questa tabella fornisce un esempio per ogni elemento attivo su questo sito.

    Per maggiori informazioni, vedi le Specifiche HTML del W3C o utilizza il tuo motore di ricerca preferito per trovare un altro sito che spieghi l'HTML.

    Descrizione elementoCosa scriviCosa vedi
    Le ancore servono a creare collegamenti ad altre pagine.<a href="http://www.daccii.it">DACCII.it</a>DACCII.it
    Enfatizzato<em>Enfatizzato</em>Enfatizzato
    Evidenziato<strong>Evidenziato</strong>Evidenziato
    Citazione<cite>Citazione</cite>Citazione
    Testo codice utilizzato per mostrare il codice sorgente dei programmi<code>Codice</code>Codice
    Elenco non ordinato - utilizza <li> all'inizio di ogni voce dell'elenco<ul> <li>Prima voce</li> <li>Seconda voce</li> </ul>
    • Prima voce
    • Seconda voce
    Elenco ordinato - utilizza <li> all'inizio di ogni voce dell'elenco<ol> <li>Prima voce</li> <li>Seconda voce</li> </ol>
    1. Prima voce
    2. Seconda voce
    Gli elenchi definizione sono simili agli altri elenchi HTML. <dl> inizia l'elenco definizione, <dt> inizia il termine da definire e <dd> inizia la descrizione della definizione.<dl> <dt>Primo termine</dt> <dd>Prima definizione</dd> <dt>Secondo termine</dt> <dd>Seconda definizione</dd> </dl>
    Primo termine
    Prima definizione
    Secondo termine
    Seconda definizione
    Preformattato<pre>Preformattato</pre>
    Preformattato

    La maggior parte dei caratteri inusuali può essere inserita direttamente senza problemi.

    Se incontri problemi, prova a utilizzare le entità carattere HTML. Un esempio comune può essere &amp; per il carattere e commerciale &. Per un elenco completo delle entità vedi la pagina entità dell'HTML. I caratteri disponibili includono:

    Descrizione carattereCosa scriviCosa vedi
    E commerciale&amp;&
    Maggiore di&gt;>
    Minore di&lt;<
    Virgolette&quot;"
  • Le linee e i paragrafi vengono riconosciuti automaticamente. Gli elementi <br /> a capo, <p> paragrafo e </p> chiuso paragrafo vengono inseriti automaticamente. Se i paragrafi non vengono riconosciuti è sufficiente aggiungere un paio di linee vuote.
  • Syntax highlighting of source code can be enabled with the following tags:

    • Generic syntax highlighting tags: "<code>", "<blockcode>".
    • Language specific syntax highlighting tags: "<bash>" for Bash source code, "<c>" for C source code, "<cpp>" for C++ source code, "<csharp>" for C# source code, "<diff>" for Diff 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, "<sql>" for SQL source code, "<xml>" for XML source code.
    • PHP source code can also be enclosed in <?php ... ?> or <% ... %>, but additional options like line numbering are not possible here.

    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: "bash" (for Bash), "c" (for C), "cpp" (for C++), "csharp" (for C#), "diff" (for Diff), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "java" (for Java), "javascript" (for Javascript), "php" (for PHP), "python" (for Python), "sql" (for SQL), "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: normal line numbers.

    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="cpp" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for C++ source code
    and normal line numbers.
    <code language="cpp" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for C++ source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
    <bash>
    foo = "bar";
    baz = "foz";
    </bash>
    Code block with syntax highlighting for Bash source code.
    <bash start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    <bash>
    Code block with syntax highlighting for Bash source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.