<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>AiutoSuFormattazione</title></articleinfo><para><ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoPerUtenti#">AiutoPerUtenti</ulink> &gt; <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoSuModificaPagina#">AiutoSuModificaPagina</ulink> &gt; AiutoSuFormattazione </para><para>Questa pagina descrive l'uso della sintassi del wiki MoinMoin (si tratta della sintassi predefinita per un wiki basato su MoinMoin, ma non è la sola). Per altre sintassi consultare <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoSuProcessoriDiCodice#">AiutoSuProcessoriDiCodice</ulink>. </para><section><title>Generale</title><itemizedlist><listitem><para>Utilizzare una o più righe vuote per separare i paragrafi </para></listitem><listitem><para>Utilizzare <code>&lt;&lt;BR&gt;&gt;</code> per andare a capo in un paragrafo. </para></listitem></itemizedlist></section><section><title>Tratto del Carattere</title><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para><emphasis role="strong"> Nome/Esempio</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Formattazione</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Note</emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis>corsivo</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <code>''corsivo''</code> </para></entry><entry colsep="1" rowsep="1"><para> Doppi apici. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">grassetto</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <code>'''grassetto'''</code> </para></entry><entry colsep="1" rowsep="1"><para> Tripli apici. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>monospazio</code> </para></entry><entry colsep="1" rowsep="1"><para> <code>`monospazio`</code> </para></entry><entry colsep="1" rowsep="1"><para> Apici inversi. La formattazione wiki viene ignorata. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>codice</code> </para></entry><entry colsep="1" rowsep="1"><para> <code>{{{codice}}}</code> </para></entry><entry colsep="1" rowsep="1"><para> <link linkend="esempio_di_codice">Esempio.</link> La formattazione wiki viene ignorata. </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="underline">sottolineato</emphasis>  </para></entry><entry colsep="1" rowsep="1"><para> <code>__sottolineato__</code> </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <superscript>sovra</superscript>titolato  </para></entry><entry colsep="1" rowsep="1"><para> <code>^sovra^titolato</code> </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <subscript>sotto</subscript>titolato  </para></entry><entry colsep="1" rowsep="1"><para> <code>,,sotto,,titolato</code> </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <!--"~-smaller-~" is not applicable to DocBook-->piùspiccolo </para></entry><entry colsep="1" rowsep="1"><para> <code>~-piùpiccolo-~</code> </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <!--"~+bigger+~" is not applicable to DocBook-->piùgrande </para></entry><entry colsep="1" rowsep="1"><para> <code>~+piùgrande+~</code> </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strikethrough">barrato</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <code>--(barrato)--</code> </para></entry><entry colsep="1" rowsep="1"/></row></tbody></tgroup></informaltable></section><section><title>Testo colorato</title><para>È possibile colorare il testo nelle tabelle senza l'aggiunta di macro (consultare <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoSuTabelle#">AiutoSuTabelle</ulink>). </para><para>Vedere anche <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/MoinMaster%3AHelpMiscellaneous/FrequentlyAskedQuestions#head-337b0c57eeb073c9550a2ed281d4ca6dda4f47e5">How can I colorize my text?</ulink> nelle FAQ. </para><para>Oppure installare la macro <ulink url="http://moinmo.in/MacroMarket/Color2">Color2</ulink>  </para></section><section><title>Codice colorato (evidenziare la sintassi)</title><para>Esistono diversi modi per evidenziare il codice: </para><orderedlist numeration="arabic"><listitem><para>Inserire un blocco di codice speciale che contenga il nome del processore: <code>{{{#!nomeprocessore</code> </para></listitem><listitem><para>Inserire un file con un'estensione supportata (come <code>.py</code>) con il comando <code>{{attachment:prova.py}}</code> </para></listitem><listitem><para>Inserire all'inizio di una pagina un'istruzione per processare quel formato: <code>#format nomeprocessore</code> </para></listitem></orderedlist><para><link linkend="SyntaxHighlighting">Esempio.</link> </para><para>Per conoscere l'elenco dei linguaggi supportati consultare <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoSuProcessoriDiCodice#">AiutoSuProcessoriDiCodice</ulink>. </para><!--rule (<hr>) is not applicable to DocBook--></section><section><title>Esempi</title><section><title>Mischiare ''corsivo'' e '''grassetto'''</title><para><anchor id="italic_bold_example"/> </para><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para><emphasis role="strong">Formattazione</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">Risultato</emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''''Aggiungere''' al principio''</code> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis><emphasis role="strong">Aggiungere</emphasis> al principio</emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''''Aggiungere'' alla fine'''</code> </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong"><emphasis>Aggiungere</emphasis> alla fine</emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''Aggiungere alla ''fine'''''</code> </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong">Aggiungere alla <emphasis>fine</emphasis></emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>''Aggiungere alla '''fine'''''</code> </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis>Aggiungere alla <emphasis role="strong">fine</emphasis></emphasis> </para></entry></row></tbody></tgroup></informaltable></section><section><title>Codice</title><para><anchor id="SyntaxHighlighting"/> </para><screen><![CDATA[{{{
10 PRINT "Ciao, mondo!"
20 GOTO 10
}}}]]></screen><para>Risultato: </para><screen><![CDATA[10 PRINT "Ciao, mondo!"
20 GOTO 10]]></screen><section><title>Annidare parentesi graffe</title><para>Come descritto in <ulink url="http://research.math.uvt.ro/wiki/AiutoSuFormattazione/wiki/AiutoSuProcessoriDiCodice#">AiutoSuProcessoriDiCodice</ulink>, è possibile avere livelli multipli di parentesi graffe: </para><screen><![CDATA[{{{{ 
Questo è un blocco di testo pre-formattato.
{{{ con parentesi graffe all'interno }}}
}}}}]]></screen><para>Risultato: </para><screen><![CDATA[Questo è un blocco di testo pre-formattato.
{{{ con parentesi graffe all'interno }}}]]></screen></section></section><section><title>Sovratitolare e sottotitolare</title><para><code>Ti ricorderai, dalle lezioni di matematica, che ''a''^2^ </code>+<code> ''b''^2^ </code>=<code> ''c''^2^,</code> <code>a meno che la tua testa non sia piena di H,,2,,O.</code> </para><para>Risultato: </para><para>Ti ricorderai, dalle lezioni di matematica, che <emphasis>a</emphasis><superscript>2</superscript> <code>+</code> <emphasis>b</emphasis><superscript>2</superscript> <code>=</code> <emphasis>c</emphasis><superscript>2</superscript>,</para><para> a meno che la tua testa non sia piena di H<subscript>2</subscript>O. </para></section><section><title>Codice colorato, metodo #1</title><para><anchor id="color_code_example"/> </para><screen><![CDATA[{{{#!python
from colors import palette
palette.colorize('python')
}}}]]></screen><para>Risultato: </para><programlisting format="linespecific" language="python" linenumbering="numbered" startinglinenumber="1"><token><![CDATA[from]]></token><![CDATA[ ]]><methodname><![CDATA[colors]]></methodname><![CDATA[ ]]><token><![CDATA[import]]></token><![CDATA[ ]]><methodname><![CDATA[palette]]></methodname>
<methodname><![CDATA[palette]]></methodname><![CDATA[.]]><methodname><![CDATA[colorize]]></methodname><![CDATA[(]]><phrase><![CDATA[']]></phrase><phrase><![CDATA[python]]></phrase><phrase><![CDATA[']]></phrase><![CDATA[)]]>
</programlisting></section></section></article>