Come faccio a mantenere spazi e indentazione?#

Se viene postato del testo che contiene spazi, anche in un blocco "code", gli spazi vengono trimmati. Come è possibile evitare questo comportamento? Esempio: Codice wiki:

__Ciao         a             tutti__
Risultato: Ciao a tutti

Oppure:

%%quote 
__Ciao         a             tutti__
/%
Risultato: Ciao a tutti


E' possiblie usare il blocco

    %%prettify
    {{
        some code block 
    }}
    /%

Esempio (ATTENZIONE: ho tolto una graffa per evitare errori di interpretazione) Codice wiki:

    %%prettify 
    {{
    __Ciao         a               tutti___
    __Sono         incolonnato     correttamente___
    }}
    /%
Risultato:
    __Ciao         a               tutti___
    __Sono         incolonnato     correttamente___

--m.sanfilippo, 07-Jan-2009 09:16


Oppure racchiudere il tutto in un blocco formattato con il CSS, usando la proprietà "white-space: pre"

Esempio (ATTENZIONE: ho tolto una graffa per evitare errori di interpretazione) Codice wiki:

%%(white-space: pre; background-color: #999)
 ciao       cc        
 ciao       a tutti       ciao
%%

Risulatato:

ciao cc ciao a tutti ciao

--m.sanfilippo, 07-Jan-2009 09:27

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-6) was last changed on 14-Apr-2010 14:30 by m.sanfilippo