This line
~~Some~~thing
produces two leading spaces before the word 'Some' and the spaces before 'thing'.
However,
\texttt{~~Some~~thing}
does not produces the first two spaces (but produces the two spaces between the words).
Is there a way to force the leading spaces also when using \texttt?

\fbox{~~Some~~thing}and\fbox{\texttt{~~Some~~thing}}. – Werner Oct 10 '11 at 14:23\mbox{\texttt{~~Some~~thing}}should work as you expect it. Although the indentation will be larger, because, as Werner has already mentioned, the spaces are larger since texttt is monospaced. – Roelof Spijker Oct 10 '11 at 15:25