Usando i tag code il codice mantiene l'indentazione con cui l'hai copiato e viene visualizzato con un carattere a spaziatura fissa.
Esempio: tu inserisci questo:
[code]
MessageReturnValue UIDraggingTool::OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT KeyFlags)
{
//Abort the dragging
cancel=true;
//Erase the last shape
eraseLastShape();
//Release the capture
ReleaseCapture();
//Nofity the event
DraggingCanceled(last_firstVertex,last_secondVerte x,KeyFlags);
return true;
}[/code]
nel messaggio si vede questo:
codice:
MessageReturnValue UIDraggingTool::OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT KeyFlags)
{
//Abort the dragging
cancel=true;
//Erase the last shape
eraseLastShape();
//Release the capture
ReleaseCapture();
//Nofity the event
DraggingCanceled(last_firstVertex,last_secondVertex,KeyFlags);
return true;
}
.